Class LoggerAppenderFile
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
Package: log4php\appenders
License: Apache License, Version 2.0
Version: $Revision: 1382274 $
Link: Appender documentation
Located at appenders/LoggerAppenderFile.php
License: Apache License, Version 2.0
Version: $Revision: 1382274 $
Link: Appender documentation
Located at appenders/LoggerAppenderFile.php
protected
|
|
protected
boolean
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
boolean
|
|
public
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
protected
boolean
|
$locking | true |
#
If set to true, the file is locked before appending. This allows concurrent access. However, appending without locking is faster so it should be used where appropriate. |
protected
boolean
|
$append | true |
#
If set to true, appends to file. Otherwise overwrites it. |
protected
string
|
$file |
|
#
Path to the target file. |
protected
resource
|
$fp |
|
#
The file resource. |
$closed,
$filter,
$layout,
$name,
$requiresLayout,
$threshold
|