function __construct($logFileName = "", $logPath = "") { if ($logFileName != "") { $this->_logFileName = $logFileName . date("Ymd") . ".log"; } else { $this->_logFileName = date("Ymd") . ".log"; } $this->_logPath = $logPath == "" ? Pft_Config::getLogPath() : $logPath; if (!file_exists($this->_logPath)) { mkdir($this->_logPath, 0777, true); @chmod($this->_logPath, 0777); } $this->_hLogFile = fopen($this->_logPath . $this->_logFileName, "a"); @chmod($this->_logPath . $this->_logFileName, 0766); //$this->_startTime = $this->_microtime_float(); if (defined('APP_START_TIME')) { $this->_startTime = (int) (APP_START_TIME * 1000); } else { $this->_startTime = $this->_microtime_float(); } $this->_lastLogTime = $this->_startTime; }