Code review (round 1)

This commit is contained in:
binwiederhier 2023-02-08 22:57:10 -05:00
parent 7706bd9845
commit b37cf02a6e
12 changed files with 78 additions and 23 deletions

View file

@ -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
}