logger: add With() shortcut alias
This commit is contained in:
parent
67e87adf89
commit
42aba649c8
|
@ -103,3 +103,7 @@ func SetLevel(level Level) {
|
|||
func SetFormat(format Format) {
|
||||
defaultLogger = Make(format, os.Stdout)
|
||||
}
|
||||
|
||||
func With(ctx context.Context, fields ...Field) context.Context {
|
||||
return slog.With(ctx, fields...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue