Example of a log with no particular "level"
()
| 51 | |
| 52 | // Example of a log with no particular "level" |
| 53 | func ExampleLog() { |
| 54 | setup() |
| 55 | log.Log().Msg("hello world") |
| 56 | |
| 57 | // Output: {"time":1199811905,"message":"hello world"} |
| 58 | } |
| 59 | |
| 60 | // Example of a conditional level based on the presence of an error. |
| 61 | func ExampleErr() { |