Test
This commit is contained in:
parent
8593f98a96
commit
6bc98cea2b
1 changed files with 1 additions and 3 deletions
|
@ -11,8 +11,6 @@ import (
|
|||
|
||||
var once sync.Once
|
||||
|
||||
var log zerolog.Logger
|
||||
|
||||
func Get(c string, l string) zerolog.Logger {
|
||||
once.Do(func() {
|
||||
zerolog.TimeFieldFormat = time.RFC3339Nano
|
||||
|
@ -26,7 +24,7 @@ func Get(c string, l string) zerolog.Logger {
|
|||
panic("unable to get parse level for logger")
|
||||
}
|
||||
|
||||
log = zerolog.New(output).
|
||||
log := zerolog.New(output).
|
||||
Level(zerolog.Level(level)).
|
||||
With().
|
||||
Str("context", c).
|
||||
|
|
Loading…
Reference in a new issue