default logs to stderr

This commit is contained in:
Antoine Grondin 2015-04-22 15:27:44 -04:00
parent 26709e2714
commit f8f08842cc
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# 0.8
logrus: defaults to stderr instead of stdout
# 0.7.3
formatter/\*: allow configuration of timestamp layout

View File

@ -44,7 +44,7 @@ type Logger struct {
// It's recommended to make this a global instance called `log`.
func New() *Logger {
return &Logger{
Out: os.Stdout,
Out: os.Stderr,
Formatter: new(TextFormatter),
Hooks: make(levelHooks),
Level: InfoLevel,