Plop
A simple logging library for PHP
|
Interface for a class capable of handling log records. More...
Public Member Functions | |
getFilters () | |
getFormatter () | |
handle (\Plop\RecordInterface $record) | |
handleError (\Plop\RecordInterface $record,\Exception $exception) | |
setFilters (\Plop\FiltersCollectionAbstract $filters) | |
setFormatter (\Plop\FormatterInterface $formatter) | |
Interface for a class capable of handling log records.
Definition at line 27 of file HandlerInterface.php.
Plop\HandlerInterface::getFilters | ( | ) |
Get the collection of filters currently associated with this handler.
Plop::FiltersCollectionAbstract | Collection of filters associated with this handler. |
Implemented in Plop\HandlerAbstract.
Plop\HandlerInterface::getFormatter | ( | ) |
Return the formatter used by this handler.
Plop::FormatterInterface | Formatter object used by this handler. |
Implemented in Plop\HandlerAbstract.
Plop\HandlerInterface::handle | ( | \Plop\RecordInterface | $record | ) |
Handle a log record.
Plop::RecordInterface | $record | The log record to handle. |
Plop::HandlerInterface | The handler instance (ie. $this). |
Implemented in Plop\HandlerAbstract.
Plop\HandlerInterface::handleError | ( | \Plop\RecordInterface | $record, |
\Exception | $exception | ||
) |
Handle an exception that occurred during log record handling.
Plop::RecordInterface | $record | The log record that was being handled when the exception occurred. |
Exception | $exception | The actual exception. |
Plop::HandlerInterface | The handler instance (ie. $this). |
Implemented in Plop\Handler\Socket, and Plop\HandlerAbstract.
Plop\HandlerInterface::setFilters | ( | \Plop\FiltersCollectionAbstract | $filters | ) |
Set the collection of filters associated with this handler.
Plop::FiltersCollectionAbstract | $filters | New collection of filters to associate with this handler. |
Plop::HandlerInterface | The handler instance (ie. $this). |
Implemented in Plop\HandlerAbstract.
Plop\HandlerInterface::setFormatter | ( | \Plop\FormatterInterface | $formatter | ) |
Set the new formatter to use.
Plop::FormatterInterface | $formatter | The new formatter object to use to format log records. |
Plop::HandlerInterface | The handler instance (ie. $this). |
Implemented in Plop\HandlerAbstract.