From f8f08842cce7ed05c296430852f60f287458c529 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Wed, 22 Apr 2015 15:27:44 -0400 Subject: [PATCH] default logs to stderr --- CHANGELOG.md | 4 ++++ logger.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb72bff..2cf1175 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.8 + +logrus: defaults to stderr instead of stdout + # 0.7.3 formatter/\*: allow configuration of timestamp layout diff --git a/logger.go b/logger.go index da928a3..3c07ea7 100644 --- a/logger.go +++ b/logger.go @@ -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,