Structured output of measurements

This commit is contained in:
Arturo Filastò
2018-09-10 18:03:32 +02:00
parent 53791076c9
commit 1637fdbf93
6 changed files with 33 additions and 11 deletions
+2 -2
View File
@@ -136,10 +136,10 @@ func (h *Handler) DefaultLog(e *log.Entry) error {
if name == "source" {
continue
}
s += fmt.Sprintf(" %s=%s", color.Sprint(name), e.Fields.Get(name))
s += fmt.Sprintf(" %s=%v", color.Sprint(name), e.Fields.Get(name))
}
fmt.Fprintf(h.Writer, s)
fmt.Fprint(h.Writer, s)
fmt.Fprintln(h.Writer)
return nil