MCPcopy
hub / github.com/go-co-op/gocron / Logger

Interface Logger

logger.go:17–22  ·  view source on GitHub ↗

Logger is the interface that wraps the basic logging methods used by gocron. The methods are modeled after the standard library slog package. The default logger is a no-op logger. To enable logging, use one of the provided New*Logger functions or implement your own Logger. The actual level of Log th

Source from the content-addressed store, hash-verified

15// or implement your own Logger. The actual level of Log that is logged
16// is handled by the implementation.
17type Logger interface {
18 Debug(msg string, args ...any)
19 Error(msg string, args ...any)
20 Info(msg string, args ...any)
21 Warn(msg string, args ...any)
22}
23
24var _ Logger = (*noOpLogger)(nil)
25

Callers 14

startMethod · 0.65
limitModeRunnerMethod · 0.65
singletonModeRunnerMethod · 0.65
stopMethod · 0.65
stopSchedulerMethod · 0.65
selectStartMethod · 0.65
ShutdownWithContextMethod · 0.65
TestJob_RunNow_ErrorFunction · 0.65
NewSchedulerFunction · 0.65

Implementers 4

noOpLoggerlogger.go
loggerlogger.go
MockLoggermocks/logger.go
MockLoggerMockRecordermocks/logger.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…