()
| 91 | } |
| 92 | |
| 93 | func ExampleLogger_Printf() { |
| 94 | dst := bytes.Buffer{} |
| 95 | log := New(&dst) |
| 96 | |
| 97 | log.Printf("hello %s", "world") |
| 98 | |
| 99 | fmt.Println(decodeIfBinaryToString(dst.Bytes())) |
| 100 | // Output: {"level":"debug","message":"hello world"} |
| 101 | } |
| 102 | |
| 103 | func ExampleLogger_Trace() { |
| 104 | dst := bytes.Buffer{} |
nothing calls this directly
no test coverage detected