diff --git a/logger/log.go b/logger/log.go index 880255d..84da339 100644 --- a/logger/log.go +++ b/logger/log.go @@ -95,11 +95,12 @@ func Default() *Logger { return std } func ReplaceDefault(l *Logger) { std = l } func SetLevel(level Level) { std.SetLevel(level) } + func With(fields ...Field) { - std.l.With(fields...) + std.l.Core().With(fields) } func WithRequestId(reqId string) { - std.l.With(String("reqId", reqId)) + std.l.Core().With([]Field{String("reqId", reqId)}) } func Debug(msg string, fields ...Field) { std.Debug(msg, fields...) }