test-errcode
wangchuxiao 2 years ago
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…
Cancel
Save