eZ Publish  [4.2]
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 39 of file ezlog.php.


Member Function Documentation

eZLog::eZLog ( )

Creates a new log object.

Definition at line 47 of file ezlog.php.

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

Definition at line 174 of file ezlog.php.

Referenced by rotateLog().

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

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]

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

Definition at line 221 of file ezlog.php.

static eZLog::setMaxLogSize ( size) [static]

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

Definition at line 165 of file ezlog.php.

static eZLog::write ( message,
logName = 'common.log',
dir = 'var/log' 
) [static]
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().


Member Data Documentation

const eZLog::MAX_LOGFILE_SIZE = 204800

Definition at line 42 of file ezlog.php.

Referenced by maxLogSize().

Definition at line 41 of file ezlog.php.

Referenced by maxLogrotateFiles().


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