mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +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) {
|
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.EncodeTime = zapcore.RFC3339TimeEncoder
|
||||||
c.EncodeDuration = zapcore.SecondsDurationEncoder
|
c.EncodeDuration = zapcore.SecondsDurationEncoder
|
||||||
c.MessageKey = "msg"
|
c.MessageKey = "msg"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user