1 Commits

Author SHA1 Message Date
andrey
1de7cc0034 add source with func name
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2024-01-02 20:22:35 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import (
//nolint:gochecknoglobals //nolint:gochecknoglobals
var global = With(New(), var global = With(New(),
WithSource(1), WithSource(2),
WithLevel(KeyLevel, level.Debug), WithLevel(KeyLevel, level.Debug),
WithExit(level.Alert), WithExit(level.Alert),
WithPanic(level.Emergency), WithPanic(level.Emergency),

View File

@@ -62,7 +62,7 @@ type option struct {
func New(opts ...func(*option)) Logger { func New(opts ...func(*option)) Logger {
log := option{ log := option{
format: formatText(), format: formatText(),
out: os.Stdout, out: os.Stderr,
} }
for _, opt := range opts { for _, opt := range opts {