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); }
public function initLog($fileName) { self::$_isCLIMode = php_sapi_name() == 'cli'; date_default_timezone_set('UTC'); $this->_logFileName = $fileName; $this->logMessage('Deployment started'); }