LoggerAppender
|
--LoggerAppenderFile
|
--LoggerAppenderRollingFile
Located in File: Program_Root/appender/LoggerAppenderRollingFile.php
$Revision: 1.5 $Marco Vassura| Class Variable Summary |
$maxBackupIndex
There is one backup file by default. Default Value:
|
$maxFileSize
The default maximum file size is 10MB. Default Value:
|
| Inherited Class Variable Summary | |||||||||||||||||||||||||||
Inherited From Class LoggerAppenderFile
|
|||||||||||||||||||||||||||
Inherited From Class LoggerAppender
|
| Method Summary |
void constructor LoggerAppenderRollingFile ( $name )
The default constructor simply calls its parents constructor. |
void doAppend ( $event )
|
void getMaxBackupIndex ( )
Returns the value of the MaxBackupIndex option. |
void getMaximumFileSize ( )
Get the maximum size that the output file is allowed to reach |
void rollOver ( )
Implements the usual roll over behaviour. |
void setMaxBackupIndex ( $maxBackups )
Set the maximum number of backup files to keep around. |
void setMaxFileSize ( $value )
Set the maximum size that the output file is allowed to reach |
void setMaximumFileSize ( $maxFileSize )
Set the maximum size that the output file is allowed to reach before being rolled over to backup files. |
| Inherited Method Summary | ||||||||||||||||||||||||||||||||
Inherited From Class LoggerAppenderFile
|
||||||||||||||||||||||||||||||||
Inherited From Class LoggerAppender
|
| Method Detail |
void LoggerAppenderRollingFile( mixed $name)
The default constructor simply calls its parents constructor.[ Top ]
void doAppend( mixed $event)
Overrides LoggerAppenderFile::doAppend() (parent method not documented)
[ Top ]
void getMaxBackupIndex( )
Returns the value of the MaxBackupIndex option.[ Top ]
void getMaximumFileSize( )
Get the maximum size that the output file is allowed to reachbefore being rolled over to backup files.
[ Top ]
void rollOver( )
Implements the usual roll over behaviour.If MaxBackupIndex is positive, then files File.1, ..., File.MaxBackupIndex -1 are renamed to File.2, ..., File.MaxBackupIndex. Moreover, File is renamed File.1 and closed. A new File is created to receive further log output.
If MaxBackupIndex is equal to zero, then the File is truncated with no backup files created.
[ Top ]
void setMaxBackupIndex( mixed $maxBackups)
Set the maximum number of backup files to keep around.The MaxBackupIndex option determines how many backup files are kept before the oldest is erased. This option takes a positive integer value. If set to zero, then there will be no backup files and the log file will be truncated when it reaches MaxFileSize.
[ Top ]
void setMaxFileSize( mixed $value)
Set the maximum size that the output file is allowed to reachbefore being rolled over to backup files. <p>In configuration files, the MaxFileSize option takes an long integer in the range 0 - 2^63. You can specify the value with the suffixes "KB", "MB" or "GB" so that the integer is interpreted being expressed respectively in kilobytes, megabytes or gigabytes. For example, the value "10KB" will be interpreted as 10240.
[ Top ]
void setMaximumFileSize( mixed $maxFileSize)
Set the maximum size that the output file is allowed to reach before being rolled over to backup files.LoggerAppenderRollingFile::setMaxFileSize()[ Top ]
| Variable Detail |
[ Top ]
[ Top ]