Set color to red for error level output

This commit is contained in:
Justin Li 2014-03-15 23:34:03 -04:00
parent f33bbddc25
commit c999e7c963
1 changed files with 2 additions and 1 deletions

View File

@ -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
} }