/**
  * @param array $loggerData
  * @return array
  */
 protected function addTaskLoggerData(&$loggerData = array())
 {
     $loggerData['time'] = TimeTracker::stop('SchedulerTaskMeasure');
     $taskTitle = trim($this->getTaskTitle());
     if ($taskTitle !== '') {
         $loggerData['taskTitle'] = $taskTitle;
     }
     $this->enrichTaskLoggerData($loggerData);
 }
 /**
  * Executes the wget command
  *
  * @return string
  */
 public function execute()
 {
     $command = $this->buildCommand();
     TimeTracker::start($command);
     $this->logger->debug('Executing WGet command ' . $command, __CLASS__);
     exec($command, $outputLines, $returnVar);
     $this->logger->debug('Called WGet command returned status ' . $returnVar, __CLASS__, array('time' => TimeTracker::stop($command)));
     return implode('\\n', $outputLines);
 }