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

Function PrintfLogger

logger.go:28–30  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

26// PrintfLogger wraps a Printf-based logger (such as the standard library "log")
27// into an implementation of the Logger interface which logs errors only.
28func PrintfLogger(l interface{ Printf(string, ...interface{}) }) Logger {
29 return printfLogger{l, false}
30}
31
32// VerbosePrintfLogger wraps a Printf-based logger (such as the standard library
33// "log") into an implementation of the Logger interface which logs everything.

Callers 3

TestChainRecoverFunction · 0.85
logger.goFile · 0.85
newBufLoggerFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestChainRecoverFunction · 0.68
newBufLoggerFunction · 0.68