diff --git a/logger/log.go b/logger/log.go index 9040b21..880255d 100644 --- a/logger/log.go +++ b/logger/log.go @@ -98,6 +98,9 @@ func SetLevel(level Level) { std.SetLevel(level) } func With(fields ...Field) { std.l.With(fields...) } +func WithRequestId(reqId string) { + std.l.With(String("reqId", reqId)) +} func Debug(msg string, fields ...Field) { std.Debug(msg, fields...) } func Info(msg string, fields ...Field) { std.Info(msg, fields...) }