From c14e97bb34d10806cb137399a10224735488503d Mon Sep 17 00:00:00 2001 From: Xiaodong Dai <496690324@qq.com> Date: Tue, 21 Feb 2023 11:52:52 +0800 Subject: [PATCH] feature: ZapConfig OutputPaths default set stdout issue: https://github.com/apache/dubbo-go/issues/2148 --- log/logger/file_log.yml | 2 +- log/logger/logger.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log/logger/file_log.yml b/log/logger/file_log.yml index 75cc32c..5cb05f5 100755 --- a/log/logger/file_log.yml +++ b/log/logger/file_log.yml @@ -30,7 +30,7 @@ zapConfig: nameEncoder: "" outputPaths: - - "stderr" + - "stdout" errorOutputPaths: - "stderr" initialFields: diff --git a/log/logger/logger.go b/log/logger/logger.go index 013a02e..ed3dfac 100755 --- a/log/logger/logger.go +++ b/log/logger/logger.go @@ -81,7 +81,7 @@ func InitLogger(conf *Config) { Development: false, Encoding: "console", EncoderConfig: zapLoggerEncoderConfig, - OutputPaths: []string{"stderr"}, + OutputPaths: []string{"stdout"}, ErrorOutputPaths: []string{"stderr"}, } } else {