debug() 공개 메소드

logs debug message
public debug ( string $message, string $logGroup = null )
$message string
$logGroup string
 protected function execute()
 {
     if ($this->isBlockPending('check')) {
         $this->logger->debug('Check ' . $this->getName());
         $this->checkData();
         $this->setBlockDone();
     }
     if ($this->delete && $this->isBlockPending('delete')) {
         $this->logger->debug('Delete ' . $this->getName());
         $this->deleteData();
         $this->setBlockDone();
     }
     if ($this->isBlockPending('import')) {
         $this->logger->debug('Import ' . $this->getName());
         $this->readData();
         $this->setBlockDone();
     }
 }
예제 #2
0
 private function endBenchmark($benchmarkName, $message)
 {
     if (!$this->isActive()) {
         return;
     }
     if (!isset($this->startTimes[$benchmarkName])) {
         return;
     }
     $time = Gpf_Common_DateUtils::getNowSeconds() - $this->startTimes[$benchmarkName];
     unset($this->startTimes[$benchmarkName]);
     if (self::$benchmarkLogger === null) {
         try {
             $this->initLogger();
         } catch (Exception $e) {
             $this->isActive = false;
             return;
         }
     }
     if ($time >= $this->minSqlTime) {
         self::$benchmarkLogger->debug($time . " secs. | " . $message);
     }
 }
예제 #3
0
 protected function debug($msg)
 {
     if ($this->logger != null) {
         $this->logger->debug($msg);
     }
 }