about summary refs log tree commit diff stats
path: root/log/log.go
diff options
context:
space:
mode:
authorAlan Pearce2024-07-03 17:46:02 +0200
committerAlan Pearce2024-07-03 17:46:02 +0200
commit00de54be50ebf19913eb9ee37fa4de015bf5475b (patch)
treeec05456335384f4ad6ed2aa7fbbe05b94082569e /log/log.go
parent3af026a42747b4ff0b56894eb9632c3b4402a04f (diff)
downloadx-main.tar.lz
x-main.tar.zst
x-main.zip
log: replace standard/global loggers HEAD main
Diffstat (limited to 'log/log.go')
-rw-r--r--log/log.go3
1 files changed, 3 insertions, 0 deletions
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(),
 	}