MCPcopy
hub / github.com/sirupsen/logrus / LogFunction

FuncType LogFunction

logger.go:15–15  ·  logger.go::LogFunction

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{}

Source from the content-addressed store, hash-verified

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
15type LogFunction func() []interface{}
16
17type Logger struct {
18 // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected