From 00de54be50ebf19913eb9ee37fa4de015bf5475b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Jul 2024 17:46:02 +0200 Subject: log: replace standard/global loggers --- log/log.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'log/log.go') diff --git a/log/log.go b/log/log.go index c3338ea..730c2ef 100644 --- a/log/log.go +++ b/log/log.go @@ -91,6 +91,9 @@ func Configure(isProduction bool) *Logger { )) } + zap.ReplaceGlobals(l) + zap.RedirectStdLog(l) + return &Logger{ logger: l.WithOptions(zap.AddCallerSkip(1)).Sugar(), } -- cgit 1.4.1