A SugaredLogger wraps the base Logger functionality in a slower, but less verbose, API. Any Logger can be converted to a SugaredLogger with its Sugar method. Unlike the Logger, the SugaredLogger doesn't insist on structured logging. For each log level, it exposes four methods: - methods named afte
| 53 | // Infof(string, ...any) Printf-style logging |
| 54 | // Infoln(...any) Println-style logging |
| 55 | type SugaredLogger struct { |
| 56 | base *Logger |
| 57 | } |
| 58 | |
| 59 | // Desugar unwraps a SugaredLogger, exposing the original Logger. Desugaring |
| 60 | // is quite inexpensive, so it's reasonable for a single application to use |
nothing calls this directly
no outgoing calls
no test coverage detected