mirror of https://github.com/sirupsen/logrus.git
Set color to red for error level output
This commit is contained in:
parent
f33bbddc25
commit
c999e7c963
|
@ -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