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

Interface Logger

logger.go:19–24  ·  logger.go::Logger

Logger is the interface used in this package for logging, so that any backend can be plugged in. It is a subset of the github.com/go-logr/logr interface.

Source from the content-addressed store, hash-verified

17// Logger is the interface used in this package for logging, so that any backend
18// can be plugged in. It is a subset of the github.com/go-logr/logr interface.
19type Logger interface {
20 // Info logs routine messages about cron's operation.
21 Info(msg string, keysAndValues ...interface{})
22 // Error logs an error condition.
23 Error(err error, msg string, keysAndValues ...interface{})
24}
25
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.

Callers 11

DelayIfStillRunningFunction · 0.65
SkipIfStillRunningFunction · 0.65
runMethod · 0.65
TestChainFunction · 0.65
TestActivationFunction · 0.65
TestNextFunction · 0.65
TestErrorsFunction · 0.65
getTimeFunction · 0.65
TestNextWithTzFunction · 0.65

Implementers 1

printfLoggerlogger.go

Calls

no outgoing calls

Tested by

no test coverage detected