Print struct keys for struct log fields

Can be useful for debugging, saves a lot of referring to source code
This commit is contained in:
Peter Fern 2015-07-05 17:06:52 +10:00
parent ab7e46ea22
commit 62bd221be1
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []strin
}
for _, k := range keys {
v := entry.Data[k]
fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=%v", levelColor, k, v)
fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=%+v", levelColor, k, v)
}
}