thrownewCException(Yii::t('yii','CFileLogRoute.logPath "{path}" does not point to a valid directory. Make sure the directory exists and is writable by the Web server process.',
array('{path}'=>$value)));
}
/**
* @return string log file name. Defaults to 'application.log'.
*/
publicfunctiongetLogFile()
{
return$this->_logFile;
}
/**
* @param string $value log file name
*/
publicfunctionsetLogFile($value)
{
$this->_logFile=$value;
}
/**
* @return integer maximum log file size in kilo-bytes (KB). Defaults to 1024 (1MB).
*/
publicfunctiongetMaxFileSize()
{
return$this->_maxFileSize;
}
/**
* @param integer $value maximum log file size in kilo-bytes (KB).
*/
publicfunctionsetMaxFileSize($value)
{
if(($this->_maxFileSize=(int)$value)<1)
$this->_maxFileSize=1;
}
/**
* @return integer number of files used for rotation. Defaults to 5.
*/
publicfunctiongetMaxLogFiles()
{
return$this->_maxLogFiles;
}
/**
* @param integer $value number of files used for rotation.
*/
publicfunctionsetMaxLogFiles($value)
{
if(($this->_maxLogFiles=(int)$value)<1)
$this->_maxLogFiles=1;
}
}
/**
/**
* Saves log messages in files.
* Sends log [[messages]] to specified email addresses.
* @param array $logs list of log messages
* @param boolean $final whether this method is called at the end of the current application