Example of a log at a particular "level" (in this case, "debug")
()
| 78 | |
| 79 | // Example of a log at a particular "level" (in this case, "debug") |
| 80 | func ExampleDebug() { |
| 81 | setup() |
| 82 | log.Debug().Msg("hello world") |
| 83 | |
| 84 | // Output: {"level":"debug","time":1199811905,"message":"hello world"} |
| 85 | } |
| 86 | |
| 87 | // Example of a log at a particular "level" (in this case, "info") |
| 88 | func ExampleInfo() { |