func (e *Engine) Start() {
	log := logrus.New()
	i := 0
	for _, mon := range e.monitors {
		newTask := task.New(task.Parameters{Name: mon.RootDirectory, Function: mon.Check, Logger: log})
		e.tasks = append(e.tasks, newTask)
		newTask.Start(time.Duration(mon.CheckFrequencySeconds) * time.Second)
		i++
	}
	e.log.Infof("started the watcher engine with %d monitors", i)
}
// Start starts the engine.
Start starts the engine.
// Start starts the engine .
func (e *Engine) Start() {
	log := logrus.New()
	i := 0
	for _, mon := range e.monitors {
		newTask := task.New(task.Parameters{Name: mon.RootDirectory, Function: mon.Check, Logger: log})
		e.tasks = append(e.tasks, newTask)
		newTask.Start(time.Duration(mon.CheckFrequencySeconds) * time.Second)
		i++
	}
	e.log.Infof("started the watcher engine with %d monitors", i)
}
func ( e * Engine ) Start ( ) { log := logrus . New ( ) i := 0 for _ , mon := range e . monitors { newTask := task . New ( task . Parameters { Name : mon . RootDirectory , Function : mon . Check , Logger : log } ) e . tasks = append ( e . tasks , newTask ) newTask . Start ( time . Duration ( mon . CheckFrequencySeconds ) * time . Second ) i ++ } e . log . Infof ( " " , i ) }
Start starts the engine.
Start starts the engine .