Added TRACE level logging.

This commit is contained in:
drampull
2017-10-20 08:40:54 -04:00
committed by Loren Osborn
parent 680f584d62
commit 4981d8161c
10 changed files with 81 additions and 3 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []string, timestampFormat string) {
var levelColor int
switch entry.Level {
case DebugLevel:
case DebugLevel, TraceLevel:
levelColor = gray
case WarnLevel:
levelColor = yellow