LogFunction For big messages, it can be more efficient to pass a function and only call it if the log level is actually enables rather than generating the log message and then checking if the level is enabled
func() []interface{}
| 13 | // and only call it if the log level is actually enables rather than |
| 14 | // generating the log message and then checking if the level is enabled |
| 15 | type LogFunction func() []interface{} |
| 16 | |
| 17 | type Logger struct { |
| 18 | // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a |
nothing calls this directly
no outgoing calls
no test coverage detected