@@ -22,13 +22,12 @@ func TestLogger(t *testing.T) {
22
22
log .Tracef ("trace: %s" , "trace" )
23
23
log .Log (Entry {Level : Trace , Message : "trace: trace" })
24
24
assert .Equal (t , strings .TrimSpace (`
25
- {"level":"trace","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"trace: trace"}
26
- {"level":"debug","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"debug: debug"}
27
- {"level":"info","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"info: info"}
28
- {"level":"warn","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"warn: warn"}
29
- {"level":"error","time":"1970-01-01T00:00:00Z","error":"error","timestamp":"0001-01-01T00:00:00Z","message":"error: error: error"}
30
- {"attributes":{"key":"value","scope":"scoped"},"level":"trace","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"trace: trace"}
31
- {"attributes":{"key":"value","scope":"scoped"},"level":"trace","time":"1970-01-01T00:00:00Z","timestamp":"0001-01-01T00:00:00Z","message":"trace: trace"}
32
-
25
+ {"level":"trace","timestamp":"1970-01-01T00:00:00Z","message":"trace: trace"}
26
+ {"level":"debug","timestamp":"1970-01-01T00:00:00Z","message":"debug: debug"}
27
+ {"level":"info","timestamp":"1970-01-01T00:00:00Z","message":"info: info"}
28
+ {"level":"warn","timestamp":"1970-01-01T00:00:00Z","message":"warn: warn"}
29
+ {"level":"error","error":"error","timestamp":"1970-01-01T00:00:00Z","message":"error: error: error"}
30
+ {"attributes":{"key":"value","scope":"scoped"},"level":"trace","timestamp":"1970-01-01T00:00:00Z","message":"trace: trace"}
31
+ {"attributes":{"key":"value","scope":"scoped"},"level":"trace","timestamp":"1970-01-01T00:00:00Z","message":"trace: trace"}
33
32
` )+ "\n " , w .String ())
34
33
}
0 commit comments