feat: add WithRequestId

This commit is contained in:
tiglog 2023-10-17 17:55:48 +08:00
parent 2757e4f3c3
commit 64679cfdca

View File

@ -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...) }