Merge pull request #9 from pushrax/fix-error-color

Set color to red for error level output
This commit is contained in:
Simon Eskildsen 2014-03-16 14:00:54 -07:00
commit 5394f63d6b
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
} }