()
| 24 | } |
| 25 | |
| 26 | func ExampleWithLevel() { |
| 27 | logger := logging.NewLogger("json") |
| 28 | levelLogger := logging.WithLevel(logger) |
| 29 | levelLogger.Info("hello") |
| 30 | // Output: |
| 31 | // {"caller":"example_test.go:29","level":"info","msg":"hello"} |
| 32 | } |
| 33 | |
| 34 | func Example_sprintf() { |
| 35 | logger := logging.NewLogger("json") |