This commit is contained in:
wangchuxiao 2023-04-18 13:11:40 +08:00
parent 554c0961c1
commit 7dd93aa395

View File

@ -101,6 +101,7 @@ func (l *ZapLogger) cores(isStdout bool, isJson bool, logLocation string, rotate
c.MessageKey = "msg"
c.LevelKey = "level"
c.TimeKey = "time"
c.CallerKey = "caller"
var fileEncoder zapcore.Encoder
if isJson {