Code review (round 1)
This commit is contained in:
parent
7706bd9845
commit
b37cf02a6e
12 changed files with 78 additions and 23 deletions
|
@ -55,6 +55,8 @@ func ToLevel(s string) Level {
|
|||
return WarnLevel
|
||||
case "ERROR":
|
||||
return ErrorLevel
|
||||
case "FATAL":
|
||||
return FatalLevel
|
||||
default:
|
||||
return InfoLevel
|
||||
}
|
||||
|
@ -101,6 +103,6 @@ type Contexter interface {
|
|||
type Context map[string]any
|
||||
|
||||
type levelOverride struct {
|
||||
value any
|
||||
value string
|
||||
level Level
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue