feat: add WithRequestId
This commit is contained in:
parent
2757e4f3c3
commit
64679cfdca
@ -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...) }
|
||||
|
Loading…
Reference in New Issue
Block a user