func WithLogger(logger interface{ Printf(string, ...interface{}) }) Option {
	return func(dcron *Dcron) {
		dcron.logger = logger
		f := cron.WithLogger(cron.PrintfLogger(logger))
		dcron.crOptions = append(dcron.crOptions, f)
	}
}
WithLogger both set dcron and cron logger.
package dcron
import (
	"github.com/robfig/cron/v3"
	"time"
)
type Option func(*Dcron)