Class LoggerAppenderRollingFile
LoggerAppenderRollingFile writes logging events to a specified file. The file is rolled over after a specified size has been reached.
This appender uses a layout.
Configurable parameters:
- file - Path to the target file.
- append - If set to true, the appender will append to the file, otherwise the file contents will be overwritten.
- maxBackupIndex - Maximum number of backup files to keep. Default is 1.
- maxFileSize - Maximum allowed file size (in bytes) before rolling over. Suffixes "KB", "MB" and "GB" are allowed. 10KB = 10240 bytes, etc. Default is 10M.
- compress - If set to true, rolled-over files will be compressed. Requires the zlib extension.
- LoggerConfigurable
- LoggerAppender
- LoggerAppenderFile
- LoggerAppenderRollingFile
Package: log4php\appenders
License: Apache License, Version 2.0
Version: $Revision: 1394975 $
Link: Appender documentation
Located at appenders/LoggerAppenderRollingFile.php
License: Apache License, Version 2.0
Version: $Revision: 1394975 $
Link: Appender documentation
Located at appenders/LoggerAppenderRollingFile.php
public
integer
|
#
getMaximumFileSize( )
Get the maximum size that the output file is allowed to reach before being rolled over to backup files. |
public
|
|
protected
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
append(),
close(),
getAppend(),
getFile(),
getTargetFile(),
openFile(),
setAppend(),
setFile(),
writeWithLocking(),
writeWithoutLocking()
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
integer |
COMPRESS_CHUNK_SIZE
|
102400 |
#
Compressing backup files is done in chunks, this determines how large. |
protected
integer
|
$maxFileSize | 10485760 |
#
The maximum size (in bytes) that the output file is allowed to reach before being rolled over to backup files. |
protected
integer
|
$maxBackupIndex | 1 |
#
Set the maximum number of backup files to keep around. |
protected
boolean
|
$compress | false |
#
The compress parameter determindes the compression with zlib. If set to true, the rollover files are compressed and saved with the .gz extension. |
$append,
$file,
$fp,
$locking
|
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|