Example of a log at a particular "level" (in this case, "info")
()
| 86 | |
| 87 | // Example of a log at a particular "level" (in this case, "info") |
| 88 | func ExampleInfo() { |
| 89 | setup() |
| 90 | log.Info().Msg("hello world") |
| 91 | |
| 92 | // Output: {"level":"info","time":1199811905,"message":"hello world"} |
| 93 | } |
| 94 | |
| 95 | // Example of a log at a particular "level" (in this case, "warn") |
| 96 | func ExampleWarn() { |