eZ Publish  [trunk]
eZLog Class Reference

List of all members.

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)

Detailed Description

Definition at line 19 of file ezlog.php.


Member Function Documentation

Creates a new log object.

Definition at line 27 of file ezlog.php.

static eZLog::maxLogrotateFiles ( ) [static]
Returns:
the maximum number of logrotate files to keep.

Definition at line 154 of file ezlog.php.

Referenced by rotateLog().

static eZLog::maxLogSize ( ) [static]
Returns:
the maximum size for a log file in bytes.

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]

Sets the maximum number of logrotate files to keep to $files.

Definition at line 201 of file ezlog.php.

static eZLog::setMaxLogSize ( size) [static]

Sets the maximum size for a log file to $size.

Definition at line 145 of file ezlog.php.

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().


Member Data Documentation

const eZLog::MAX_LOGFILE_SIZE = 204800

Definition at line 22 of file ezlog.php.

Referenced by maxLogSize().

Definition at line 21 of file ezlog.php.

Referenced by maxLogrotateFiles().


The documentation for this class was generated from the following file: