Skip to content

Commit

Permalink
feat: supports lower case level like [info]
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Oct 20, 2023
1 parent 021d3f7 commit 716bb00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/level_guesser.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func guessLogLevel(logEvent *LogEvent) string {
return level
}

if strings.Contains(value, "["+strings.ToLower(level)+"]") {
return level
}

if strings.Contains(value, " "+strings.ToUpper(level)+" ") {
return level
}
Expand Down

0 comments on commit 716bb00

Please sign in to comment.