Beispiel #1
0
 public function initLog($fileName)
 {
     self::$_isCLIMode = php_sapi_name() == 'cli';
     date_default_timezone_set('UTC');
     $this->_logFileName = $fileName;
     $dirName = dirname($fileName);
     if (!file_exists($dirName)) {
         mkdir($dirName, 0755, true);
     }
     $this->_logFileName = $fileName;
     $this->logMessage('Deployment started, logging at ' . $fileName);
 }
Beispiel #2
0
 public function initLog($fileName)
 {
     self::$_isCLIMode = php_sapi_name() == 'cli';
     date_default_timezone_set('UTC');
     $this->_logFileName = $fileName;
     $this->logMessage('Deployment started');
 }