Function
ExampleLogger_WithLevel
log_example_test.go:159–166
· log_example_test.go::ExampleLogger_WithLevel
()
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | func ExampleLogger_WithLevel() { |
| 160 | log := zerolog.New(os.Stdout) |
| 161 | |
| 162 | log.WithLevel(zerolog.InfoLevel). |
| 163 | Msg("hello world") |
| 164 | |
| 165 | // Output: {"level":"info","message":"hello world"} |
| 166 | } |
| 167 | |
| 168 | func ExampleLogger_Write() { |
| 169 | log := zerolog.New(os.Stdout).With(). |
Callers
nothing calls this directly
Tested by
no test coverage detected