Skip to content

Commit

Permalink
refactor: change output stream of infoLogger to os.Stdout
Browse files Browse the repository at this point in the history
- Change the output stream of the `infoLogger` from `os.Stderr` to `os.Stdout`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Nov 26, 2023
1 parent 4152c80 commit 3375e74
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 @@ -19,7 +19,7 @@ type Logger interface {
// NewLogger for simple logger.
func NewLogger() Logger {
return defaultLogger{
infoLogger: log.New(os.Stderr, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile),
infoLogger: log.New(os.Stdout, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile),
errorLogger: log.New(os.Stderr, "ERROR: ", log.Ldate|log.Ltime|log.Lshortfile),
fatalLogger: log.New(os.Stderr, "FATAL: ", log.Ldate|log.Ltime|log.Lshortfile),
}
Expand Down

0 comments on commit 3375e74

Please sign in to comment.