feat: add With func
This commit is contained in:
parent
9ad207f6c9
commit
e2ac9a7704
@ -95,6 +95,9 @@ 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...)
|
||||
}
|
||||
|
||||
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