Browse Source

logger: add With() shortcut alias

extension
wpetit 2 years ago
parent
commit
42aba649c8
  1. 4
      logger/logger.go

4
logger/logger.go

@ -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…
Cancel
Save