forked from mirror/logrus
default logs to stderr
This commit is contained in:
parent
26709e2714
commit
f8f08842cc
|
@ -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