ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Interface that all Monolog Handlers must implement. More...
Public Member Functions | |
isHandling (array $record) | |
Checks whether the given record will be handled by this handler. More... | |
handle (array $record) | |
Handles a record. More... | |
handleBatch (array $records) | |
Handles a set of records at once. More... | |
pushProcessor ($callback) | |
Adds a processor in the stack. More... | |
popProcessor () | |
Removes the processor on top of the stack and returns it. More... | |
setFormatter (FormatterInterface $formatter) | |
Sets the formatter. More... | |
getFormatter () | |
Gets the formatter. More... | |
Interface that all Monolog Handlers must implement.
Definition at line 21 of file HandlerInterface.php.
Monolog\Handler\HandlerInterface::getFormatter | ( | ) |
Gets the formatter.
Implemented in Monolog\Handler\AbstractHandler, and Monolog\Handler\HandlerWrapper.
Monolog\Handler\HandlerInterface::handle | ( | array | $record | ) |
Handles a record.
All records may be passed to this method, and the handler should discard those that it does not want to handle.
The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
array | $record | The record to handle |
Implemented in Monolog\Handler\PHPConsoleHandler, Monolog\Handler\ExceptionTestHandler, Monolog\Handler\FingersCrossedHandler, Monolog\Handler\FilterHandler, Monolog\Handler\SamplingHandler, Monolog\Handler\GroupHandler, Monolog\Handler\HandlerWrapper, Monolog\Handler\BufferHandler, Monolog\Handler\PsrHandler, Monolog\Handler\NullHandler, Monolog\Handler\AbstractProcessingHandler, and Monolog\Handler\WhatFailureGroupHandler.
Referenced by Monolog\Handler\AbstractHandler\handleBatch().
Monolog\Handler\HandlerInterface::handleBatch | ( | array | $records | ) |
Handles a set of records at once.
array | $records | The records to handle (an array of record arrays) |
Implemented in Monolog\Handler\HipChatHandler, Monolog\Handler\FilterHandler, Monolog\Handler\ElasticSearchHandler, Monolog\Handler\AmqpHandler, Monolog\Handler\GroupHandler, Monolog\Handler\ChromePHPHandler, Monolog\Handler\RavenHandler, Monolog\Handler\HandlerWrapper, Monolog\Handler\LogglyHandler, Monolog\Handler\AbstractHandler, Monolog\Handler\WhatFailureGroupHandler, and Monolog\Handler\MailHandler.
Monolog\Handler\HandlerInterface::isHandling | ( | array | $record | ) |
Checks whether the given record will be handled by this handler.
This is mostly done for performance reasons, to avoid calling processors for nothing.
Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
array | $record | Partial log record containing only a level key |
Implemented in Monolog\Handler\FilterHandler, Monolog\Handler\FingersCrossedHandler, Monolog\Handler\SamplingHandler, Monolog\Handler\HandlerWrapper, Monolog\Handler\AbstractHandler, and Monolog\Handler\GroupHandler.
Monolog\Handler\HandlerInterface::popProcessor | ( | ) |
Removes the processor on top of the stack and returns it.
Implemented in Monolog\Handler\AbstractHandler, and Monolog\Handler\HandlerWrapper.
Monolog\Handler\HandlerInterface::pushProcessor | ( | $callback | ) |
Adds a processor in the stack.
callable | $callback |
Implemented in Monolog\Handler\AbstractHandler, and Monolog\Handler\HandlerWrapper.
Monolog\Handler\HandlerInterface::setFormatter | ( | FormatterInterface | $formatter | ) |
Sets the formatter.
FormatterInterface | $formatter |
Implemented in Monolog\Handler\AbstractHandler, Monolog\Handler\GroupHandler, Monolog\Handler\HandlerWrapper, Monolog\Handler\ElasticSearchHandler, and Monolog\Handler\FlowdockHandler.