Class LoggerAppenderDailyRollingFile
LoggerAppenderFile appends log events to a file.
This appender uses a layout.
Configurable parameters:
- file - Path to the target file. Relative paths are resolved based on the working directory.
- append - If set to true, the appender will append to the file, otherwise the file contents will be overwritten.
- LoggerConfigurable
-
LoggerAppender
-
LoggerAppenderFile
-
LoggerAppenderDailyRollingFile
Package: log4php\appenders
License: Apache License, Version 2.0
Version: $Revision: 1382274 $
Link: Appender documentation
Located at core/log4php/appenders/LoggerAppenderDailyRollingFile.php
License: Apache License, Version 2.0
Version: $Revision: 1382274 $
Link: Appender documentation
Located at core/log4php/appenders/LoggerAppenderDailyRollingFile.php
public
|
|
protected
|
|
public
|
|
protected
|
|
protected
|
|
public
|
|
public
string
|
|
public
integer
|
#
getMaximumFileSize( )
Get the maximum size that the output file is allowed to reach before being rolled over to backup files. |
public
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
|
#
setMaximumFileSize( mixed $maxFileSize )
Set the 'maxFileSize' parameter (kept for backward compatibility). |
close(),
getAppend(),
getFile(),
getFileName(),
openFile(),
setAppend(),
setFile(),
setFileName(),
writeWithLocking(),
writeWithoutLocking()
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
protected
string
|
$datePattern
The 'datePattern' parameter. Determines how date will be formatted in file name. |
#
"Ymd"
|
protected
string
|
$currentDate
Current date which was used when opening a file. Used to determine if a rollover is needed when the date changes. |
|
protected
integer
|
$maxFileSize
The maximum size (in bytes) that the output file is allowed to reach before being rolled over to backup files. |
#
10485760
|
protected
integer
|
$maxBackupIndex
Set the maximum number of backup files to keep around. |
#
1
|
$append,
$file,
$fp,
$locking
|
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|