|
eZ Publish
[4.2]
|
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) |
| static eZLog::maxLogrotateFiles | ( | ) | [static] |
Definition at line 174 of file ezlog.php.
Referenced by rotateLog().
| static eZLog::maxLogSize | ( | ) | [static] |
Definition at line 153 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 189 of file ezlog.php.
Referenced by eZScriptClusterPurge\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 56 of file ezlog.php.
Referenced by eZFS2FileHandler\checkCacheGenerationTimeout(), eZExecution\defaultExceptionHandler(), eZFS2FileHandler\endCacheGeneration(), 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 98 of file ezlog.php.
Referenced by eZFSFileHandler\fileDeleteByRegex(), eZINI\loadCache(), eZHTTPFile\store(), and eZPHPCreator\store().
| const eZLog::MAX_LOGFILE_SIZE = 204800 |
Definition at line 42 of file ezlog.php.
Referenced by maxLogSize().
| const eZLog::MAX_LOGROTATE_FILES = 3 |
Definition at line 41 of file ezlog.php.
Referenced by maxLogrotateFiles().