Example of a log at a particular "level" (in this case, "warn")
()
| 94 | |
| 95 | // Example of a log at a particular "level" (in this case, "warn") |
| 96 | func ExampleWarn() { |
| 97 | setup() |
| 98 | log.Warn().Msg("hello world") |
| 99 | |
| 100 | // Output: {"level":"warn","time":1199811905,"message":"hello world"} |
| 101 | } |
| 102 | |
| 103 | // Example of a log at a particular "level" (in this case, "error") |
| 104 | func ExampleError() { |