|
eZ Publish
[trunk]
|
Public Member Functions | |
| eZLog () | |
Static Public Member Functions | |
| static | maxLogrotateFiles () |
| static | maxLogSize () |
| static | rotateLog ($fileName) |
| static | setLogrotateFiles ($files) |
| static | setMaxLogSize ($size) |
| static | write ($message, $logName= 'common.log', $dir= 'var/log') |
Public Attributes | |
| const | MAX_LOGFILE_SIZE = 204800 |
| const | MAX_LOGROTATE_FILES = 3 |
Static Private Member Functions | |
| static | writeStorageLog ($name, $dir=false) |
| eZLog::eZLog | ( | ) |
| static eZLog::maxLogrotateFiles | ( | ) | [static] |
Definition at line 154 of file ezlog.php.
Referenced by rotateLog().
| static eZLog::maxLogSize | ( | ) | [static] |
Definition at line 133 of file ezlog.php.
Referenced by write(), and writeStorageLog().
| static eZLog::rotateLog | ( | $ | fileName | ) | [static] |
Rotates logfiles so the current logfile is backed up, old rotate logfiles are rotated once more and those that exceed maxLogrotateFiles() will be removed. Rotated files will get the extension .1, .2 etc.
Definition at line 169 of file ezlog.php.
Referenced by eZScriptClusterPurge\run(), eZScriptTrashPurge\run(), write(), and writeStorageLog().
| static eZLog::setLogrotateFiles | ( | $ | files | ) | [static] |
| static eZLog::setMaxLogSize | ( | $ | size | ) | [static] |
| static eZLog::write | ( | $ | message, |
| $ | logName = 'common.log', |
||
| $ | dir = 'var/log' |
||
| ) | [static] |
Writes a message $message to a given file name $name and directory $dir for logging
Definition at line 36 of file ezlog.php.
Referenced by ezpUserNotFoundException\__construct(), ezpContentAccessDeniedException\__construct(), eZFS2FileHandler\checkCacheGenerationTimeout(), eZExecution\defaultExceptionHandler(), eZFS2FileHandler\endCacheGeneration(), eZScriptTrashPurge\monitor(), eZScriptClusterPurge\monitor(), eZDBFileHandler\startCacheGeneration(), eZDFSFileHandler\startCacheGeneration(), and eZAudit\writeAudit().
| static eZLog::writeStorageLog | ( | $ | name, |
| $ | dir = false |
||
| ) | [static, private] |
Writes file name $name and storage directory $dir to storage log
Definition at line 78 of file ezlog.php.
Referenced by eZFSFileHandler\fileDeleteByRegex(), eZINI\loadCache(), eZHTTPFile\store(), and eZPHPCreator\store().
| const eZLog::MAX_LOGFILE_SIZE = 204800 |
Definition at line 22 of file ezlog.php.
Referenced by maxLogSize().
| const eZLog::MAX_LOGROTATE_FILES = 3 |
Definition at line 21 of file ezlog.php.
Referenced by maxLogrotateFiles().