mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
zap
This commit is contained in:
parent
3202b6869d
commit
a2b0edf8de
@ -91,7 +91,7 @@ func NewZapLogger(logLevel int, isStdout bool, isJson bool, logLocation string,
|
||||
}
|
||||
|
||||
func (l *ZapLogger) cores(logLevel int, isStdout bool, isJson bool, logLocation string, rotateCount uint) (zap.Option, error) {
|
||||
c := zap.NewProductionEncoderConfig()
|
||||
c := zap.NewDevelopmentEncoderConfig()
|
||||
c.EncodeTime = zapcore.RFC3339TimeEncoder
|
||||
c.EncodeDuration = zapcore.SecondsDurationEncoder
|
||||
c.MessageKey = "msg"
|
||||
|
Loading…
x
Reference in New Issue
Block a user