forked from mirror/logrus
Merge pull request #9 from pushrax/fix-error-color
Set color to red for error level output
This commit is contained in:
commit
5394f63d6b
|
@ -30,7 +30,8 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
|
|||
|
||||
if entry.Data["level"] == "warning" {
|
||||
levelColor = yellow
|
||||
} else if entry.Data["level"] == "fatal" ||
|
||||
} else if entry.Data["level"] == "error" ||
|
||||
entry.Data["level"] == "fatal" ||
|
||||
entry.Data["level"] == "panic" {
|
||||
levelColor = red
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue