Structured output of measurements
This commit is contained in:
parent
53791076c9
commit
1637fdbf93
6 changed files with 33 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue