diff options
author | Alan Pearce | 2024-07-03 17:46:02 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-03 17:46:02 +0200 |
commit | 00de54be50ebf19913eb9ee37fa4de015bf5475b (patch) | |
tree | ec05456335384f4ad6ed2aa7fbbe05b94082569e /log/log.go | |
parent | 3af026a42747b4ff0b56894eb9632c3b4402a04f (diff) | |
download | x-main.tar.lz x-main.tar.zst x-main.zip |
Diffstat (limited to 'log/log.go')
-rw-r--r-- | log/log.go | 3 |
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(), } |