forked from mirror/logrus
Merge pull request #170 from aybabtme/log-to-stderr
default logs to stderr
This commit is contained in:
commit
aaf92c9571
|
@ -1,3 +1,7 @@
|
||||||
|
# 0.8
|
||||||
|
|
||||||
|
logrus: defaults to stderr instead of stdout
|
||||||
|
|
||||||
# 0.7.3
|
# 0.7.3
|
||||||
|
|
||||||
formatter/\*: allow configuration of timestamp layout
|
formatter/\*: allow configuration of timestamp layout
|
||||||
|
|
|
@ -44,7 +44,7 @@ type Logger struct {
|
||||||
// It's recommended to make this a global instance called `log`.
|
// It's recommended to make this a global instance called `log`.
|
||||||
func New() *Logger {
|
func New() *Logger {
|
||||||
return &Logger{
|
return &Logger{
|
||||||
Out: os.Stdout,
|
Out: os.Stderr,
|
||||||
Formatter: new(TextFormatter),
|
Formatter: new(TextFormatter),
|
||||||
Hooks: make(levelHooks),
|
Hooks: make(levelHooks),
|
||||||
Level: InfoLevel,
|
Level: InfoLevel,
|
||||||
|
|
Loading…
Reference in New Issue