Simple logging example using the Print function in the log package Note that both Print and Printf are at the debug log level by default
()
| 35 | // Simple logging example using the Print function in the log package |
| 36 | // Note that both Print and Printf are at the debug log level by default |
| 37 | func ExamplePrint() { |
| 38 | setup() |
| 39 | |
| 40 | log.Print("hello world") |
| 41 | // Output: {"level":"debug","time":1199811905,"message":"hello world"} |
| 42 | } |
| 43 | |
| 44 | // Simple logging example using the Printf function in the log package |
| 45 | func ExamplePrintf() { |