Skip to content

Commit

Permalink
Merge pull request #111 from CodingAdai/feature/default-outputpaths-s…
Browse files Browse the repository at this point in the history
…et-stdout

fix: ZapConfig OutputPaths default set stdout
  • Loading branch information
binbin0325 committed May 21, 2023
2 parents 4c45e16 + c14e97b commit 569afc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion log/logger/file_log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ zapConfig:
nameEncoder: ""

outputPaths:
- "stderr"
- "stdout"
errorOutputPaths:
- "stderr"
initialFields:
2 changes: 1 addition & 1 deletion log/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func InitLogger(conf *Config) {
Development: false,
Encoding: "console",
EncoderConfig: zapLoggerEncoderConfig,
OutputPaths: []string{"stderr"},
OutputPaths: []string{"stdout"},
ErrorOutputPaths: []string{"stderr"},
}
} else {
Expand Down

0 comments on commit 569afc5

Please sign in to comment.