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 }