()
| 73 | } |
| 74 | |
| 75 | func ExampleLogger_WithValues() { |
| 76 | l := NewStdoutLogger() |
| 77 | l = l.WithValues("stringVal", "value", "intVal", 12345) |
| 78 | l = l.WithValues("boolVal", true) |
| 79 | l.Info("this is an info log", "floatVal", 3.1415) |
| 80 | // Output: |
| 81 | // "level"=0 "msg"="this is an info log" "stringVal"="value" "intVal"=12345 "boolVal"=true "floatVal"=3.1415 |
| 82 | } |
| 83 | |
| 84 | func ExampleLogger_V() { |
| 85 | l := NewStdoutLogger() |
nothing calls this directly
no test coverage detected