Exemple #1
0
 protected function checkAndCycleLog()
 {
     $this->current_log_check++;
     if ($this->current_log_check > $this->max_check_interval) {
         if ($this->current_date != date('Ymd')) {
             $this->logger->addAlert("Cycling log file now.");
             $this->logger = Logger::cycleLog($this->queue_name, $this->log_level, $this->getFullLogPath());
         }
         $this->current_log_check = 0;
     }
 }