Simple logging example using the Printf function in the log package
()
| 43 | |
| 44 | // Simple logging example using the Printf function in the log package |
| 45 | func ExamplePrintf() { |
| 46 | setup() |
| 47 | |
| 48 | log.Printf("hello %s", "world") |
| 49 | // Output: {"level":"debug","time":1199811905,"message":"hello world"} |
| 50 | } |
| 51 | |
| 52 | // Example of a log with no particular "level" |
| 53 | func ExampleLog() { |