mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 19:22:46 +08:00
zap
This commit is contained in:
parent
987e6b1004
commit
1a56deeb21
@ -67,11 +67,11 @@ func NewZapLogger(logLevel int, isStdout bool, isJson bool) (*ZapLogger, error)
|
|||||||
InitialFields: map[string]interface{}{"PID": os.Getegid()},
|
InitialFields: map[string]interface{}{"PID": os.Getegid()},
|
||||||
DisableStacktrace: true,
|
DisableStacktrace: true,
|
||||||
}
|
}
|
||||||
// if isJson {
|
if isJson {
|
||||||
// zapConfig.Encoding = "json"
|
zapConfig.Encoding = "json"
|
||||||
// } else {
|
} else {
|
||||||
// zapConfig.Encoding = "console"
|
zapConfig.Encoding = "console"
|
||||||
// }
|
}
|
||||||
// if isStdout {
|
// if isStdout {
|
||||||
// zapConfig.OutputPaths = append(zapConfig.OutputPaths, "stdout", "stderr")
|
// zapConfig.OutputPaths = append(zapConfig.OutputPaths, "stdout", "stderr")
|
||||||
// }
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user