MCPcopy
hub / github.com/robfig/cron / VerbosePrintfLogger

Function VerbosePrintfLogger

logger.go:34–36  ·  view source on GitHub ↗

VerbosePrintfLogger wraps a Printf-based logger (such as the standard library "log") into an implementation of the Logger interface which logs everything.

(l interface{ Printf(string, ...interface{}) })

Source from the content-addressed store, hash-verified

32// VerbosePrintfLogger wraps a Printf-based logger (such as the standard library
33// "log") into an implementation of the Logger interface which logs everything.
34func VerbosePrintfLogger(l interface{ Printf(string, ...interface{}) }) Logger {
35 return printfLogger{l, true}
36}
37
38type printfLogger struct {
39 logger interface{ Printf(string, ...interface{}) }

Callers 1

TestWithVerboseLoggerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWithVerboseLoggerFunction · 0.68