From c999e7c96328d5aed13bf37cee630e15088dd1e0 Mon Sep 17 00:00:00 2001 From: Justin Li Date: Sat, 15 Mar 2014 23:34:03 -0400 Subject: [PATCH] Set color to red for error level output --- text_formatter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/text_formatter.go b/text_formatter.go index 5c50c91..d481686 100644 --- a/text_formatter.go +++ b/text_formatter.go @@ -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 }