Merge pull request from aybabtme/log-to-stderr

default logs to stderr
This commit is contained in:
Simon Eskildsen 2015-04-30 08:58:29 +02:00
commit aaf92c9571
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,