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" {
|
if entry.Data["level"] == "warning" {
|
||||||
levelColor = yellow
|
levelColor = yellow
|
||||||
} else if entry.Data["level"] == "fatal" ||
|
} else if entry.Data["level"] == "error" ||
|
||||||
|
entry.Data["level"] == "fatal" ||
|
||||||
entry.Data["level"] == "panic" {
|
entry.Data["level"] == "panic" {
|
||||||
levelColor = red
|
levelColor = red
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue