eZPublish  3.9
eZLog Class Reference

Public Member Functions

 eZLog ()
 
 write ($message, $logName= 'common.log', $dir= 'var/log')
 

Static Public Member Functions

 maxLogrotateFiles ()
 
 maxLogSize ()
 
 rotateLog ($fileName)
 
 setLogrotateFiles ($files)
 
 setMaxLogSize ($size)
 

Private Member Functions

 writeStorageLog ($name, $dir=false)
 

Member Function Documentation

eZLog::eZLog ( )

Creates a new log object.

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

Referenced by rotateLog().

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

Referenced by write(), and writeStorageLog().

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.

Referenced by write(), and writeStorageLog().

eZLog::setLogrotateFiles (   $files)
static

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

eZLog::setMaxLogSize (   $size)
static

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

eZLog::write (   $message,
  $logName = 'common.log',
  $dir = 'var/log' 
)

Writes a message $message to a given file name $name and directory $dir for logging

Referenced by eZAudit\writeAudit().

eZLog::writeStorageLog (   $name,
  $dir = false 
)
private

Writes file name $name and storage directory $dir to storage log

Referenced by eZFSFileHandler\fileDeleteByRegex(), eZINI\loadCache(), eZHTTPFile\store(), and eZPHPCreator\store().


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