Plop
A simple logging library for PHP
|
An abstract class for handlers that must deal with file rotations. More...
Protected Member Functions | |
doRollover () | |
emit (\Plop\RecordInterface $record) | |
shouldRollover (\Plop\RecordInterface $record) | |
Protected Member Functions inherited from Plop\Handler\File | |
close () | |
emit (\Plop\RecordInterface $record) | |
open () | |
Protected Member Functions inherited from Plop\Handler\Stream | |
emit (\Plop\RecordInterface $record) | |
flush () | |
Protected Member Functions inherited from Plop\HandlerAbstract | |
emit (\Plop\RecordInterface $record) | |
format (\Plop\RecordInterface $record) | |
getStderr () | |
Additional Inherited Members | |
Public Member Functions inherited from Plop\Handler\File | |
__construct ($filename, $mode= 'at', $delay=false) | |
__destruct () | |
Free the resources used by this handler. | |
Public Member Functions inherited from Plop\Handler\Stream | |
__construct ($stream=null) | |
Public Member Functions inherited from Plop\HandlerAbstract | |
__construct (\Plop\FormatterInterface $formatter=null,\Plop\FiltersCollectionAbstract $filters=null) | |
getFilters () | |
getFormatter () | |
handle (\Plop\RecordInterface $record) | |
handleError (\Plop\RecordInterface $record,\Exception $exception) | |
setFilters (\Plop\FiltersCollectionAbstract $filters) | |
setFormatter (\Plop\FormatterInterface $formatter) | |
Protected Attributes inherited from Plop\Handler\File | |
$baseFilename | |
Path to the log file this handler writes to. | |
$mode | |
Opening mode for the log file. | |
Protected Attributes inherited from Plop\Handler\Stream | |
$stream | |
The stream where log messages will be write to. | |
Protected Attributes inherited from Plop\HandlerAbstract | |
$filters | |
An object handling a collection of filters. | |
$formatter | |
Formatter object to use for this handler. | |
Static Protected Attributes inherited from Plop\Handler\Stream | |
static | $stderr = null |
A stream referencing STDERR. | |
An abstract class for handlers that must deal with file rotations.
Definition at line 28 of file RotatingAbstract.php.
|
abstractprotected |
Do the actual file rotation.
Referenced by Plop\Handler\RotatingAbstract\emit().
|
protected |
Definition at line 31 of file RotatingAbstract.php.
References Plop\Handler\RotatingAbstract\doRollover(), Plop\HandlerAbstract\handleError(), and Plop\Handler\RotatingAbstract\shouldRollover().
|
abstractprotected |
Decide whether a file rotation is necessary.
Plop::RecordInterface | $record | The log record being handled. |
bool | true if a file rotation is required, false otherwise. |
Referenced by Plop\Handler\RotatingAbstract\emit().