From ba6a18ff2e88d390e2e9127b5c0d9e6d26a0371e Mon Sep 17 00:00:00 2001 From: wangjian Date: Wed, 3 Aug 2022 17:14:19 +0800 Subject: [PATCH] Modify the line terminator --- logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger.go b/logger.go index 4ca1fa2..10f422f 100644 --- a/logger.go +++ b/logger.go @@ -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,