Modify the line terminator

This commit is contained in:
wangjian 2022-08-03 17:14:19 +08:00
parent f95dfe1666
commit ba6a18ff2e
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ func (logger *Logger) cores() zap.Option {
FunctionKey: zapcore.OmitKey,
MessageKey: "msg",
StacktraceKey: "stacktrace",
LineEnding: " ",
LineEnding: "\n",
EncodeLevel: encodeLevel,
EncodeTime: encodeTime,
EncodeDuration: zapcore.SecondsDurationEncoder,