logger.go 319 B

1234567891011121314
  1. package cron
  2. import (
  3. "log"
  4. "os"
  5. )
  6. var DefaultLogger = log.New(os.Stderr, "cron: ", log.LstdFlags)
  7. // Logger is the interface used in this package for logging, so that any backend
  8. // can be easily plugged in. It's implemented directly by "log" and logrus.
  9. type Logger interface {
  10. Printf(string, ...interface{})
  11. }