aboutsummaryrefslogtreecommitdiffhomepage
path: root/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'context.go')
-rw-r--r--context.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/context.go b/context.go
index 17a8aa4f8..5965d0c94 100644
--- a/context.go
+++ b/context.go
@@ -555,12 +555,8 @@ func (ctx Context) Slogger() *slog.Logger {
if mod == nil {
return slog.New(zapslog.NewHandler(Log().Core(), nil))
}
-
- return slog.New(zapslog.NewHandler(
- ctx.cfg.Logging.Logger(mod).Core(),
- &zapslog.HandlerOptions{
- LoggerName: string(mod.CaddyModule().ID),
- },
+ return slog.New(zapslog.NewHandler(ctx.cfg.Logging.Logger(mod).Core(),
+ zapslog.WithName(string(mod.CaddyModule().ID)),
))
}