mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-20 16:59:01 +08:00
zap
This commit is contained in:
@@ -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")
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user