Try something else
This commit is contained in:
parent
0ca7bb0cf3
commit
d27d835539
1 changed files with 2 additions and 1 deletions
|
@ -21,9 +21,10 @@ func Get(c string, l string) zerolog.Logger {
|
|||
Out: os.Stdout,
|
||||
TimeFormat: time.RFC3339,
|
||||
}
|
||||
level := zerolog.ParseLevel(l)
|
||||
|
||||
log = zerolog.New(output).
|
||||
Level(zerolog.Level(l)).
|
||||
Level(zerolog.Level(level)).
|
||||
With().
|
||||
Str("context", c).
|
||||
Timestamp().
|
||||
|
|
Loading…
Reference in a new issue