Skip to content

Commit

Permalink
refactor: the default writer is stderr for zerolog (#103)
Browse files Browse the repository at this point in the history
- Change logger output from `gin.DefaultWriter` to `os.Stderr`

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy authored Dec 28, 2024
1 parent 75a0ac1 commit 09eed32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func SetLogger(opts ...Option) gin.HandlerFunc {
defaultLevel: zerolog.InfoLevel,
clientErrorLevel: zerolog.WarnLevel,
serverErrorLevel: zerolog.ErrorLevel,
output: gin.DefaultWriter,
output: os.Stderr,
}

// Apply each option to the config
Expand Down

0 comments on commit 09eed32

Please sign in to comment.