ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Buffers all records until closing the handler and then pass them as batch. More...
Public Member Functions | ||||
__construct (HandlerInterface $handler, $bufferLimit=0, $level=Logger::DEBUG, $bubble=true, $flushOnOverflow=false) | ||||
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.
| ||||
flush () | ||||
__destruct () | ||||
close () | ||||
{} More... | ||||
clear () | ||||
Clears the buffer without flushing any messages down to the wrapped handler. More... | ||||
reset () | ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
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.
| ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
close () | ||||
Closes the handler. More... | ||||
pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
getFormatter () | ||||
{Gets the formatter.
| ||||
setLevel ($level) | ||||
Sets minimum logging level at which this handler will be triggered. More... | ||||
getLevel () | ||||
Gets minimum logging level at which this handler will be triggered. More... | ||||
setBubble ($bubble) | ||||
Sets the bubbling behavior. More... | ||||
getBubble () | ||||
Gets the bubbling behavior. More... | ||||
__destruct () | ||||
reset () | ||||
Protected Attributes | |
$handler | |
$bufferSize = 0 | |
$bufferLimit | |
$flushOnOverflow | |
$buffer = array() | |
$initialized = false | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Additional Inherited Members | |
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Buffers all records until closing the handler and then pass them as batch.
This is useful for a MailHandler to send only one mail per request instead of sending one per log message.
Definition at line 25 of file BufferHandler.php.
Monolog\Handler\BufferHandler::__construct | ( | HandlerInterface | $handler, |
$bufferLimit = 0 , |
|||
$level = Logger::DEBUG , |
|||
$bubble = true , |
|||
$flushOnOverflow = false |
|||
) |
HandlerInterface | $handler | Handler. |
int | $bufferLimit | How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. |
int | $level | The minimum logging level at which this handler will be triggered |
bool | $bubble | Whether the messages that are handled can bubble up the stack or not |
bool | $flushOnOverflow | If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded |
Definition at line 41 of file BufferHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\BufferHandler\$bufferLimit, Monolog\Handler\BufferHandler\$flushOnOverflow, Monolog\Handler\BufferHandler\$handler, and Monolog\Handler\AbstractHandler\$level.
Monolog\Handler\BufferHandler::__destruct | ( | ) |
Definition at line 95 of file BufferHandler.php.
Monolog\Handler\BufferHandler::clear | ( | ) |
Clears the buffer without flushing any messages down to the wrapped handler.
Definition at line 113 of file BufferHandler.php.
Referenced by Monolog\Handler\DeduplicationHandler\flush(), and Monolog\Handler\BufferHandler\flush().
Monolog\Handler\BufferHandler::close | ( | ) |
{}
Definition at line 105 of file BufferHandler.php.
References Monolog\Handler\BufferHandler\flush().
Monolog\Handler\BufferHandler::flush | ( | ) |
Definition at line 85 of file BufferHandler.php.
References Monolog\Handler\BufferHandler\clear().
Referenced by Monolog\Handler\BufferHandler\close(), Monolog\Handler\BufferHandler\handle(), and Monolog\Handler\BufferHandler\reset().
Monolog\Handler\BufferHandler::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 |
Implements Monolog\Handler\HandlerInterface.
Definition at line 52 of file BufferHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, and Monolog\Handler\BufferHandler\flush().
Monolog\Handler\BufferHandler::reset | ( | ) |
Implements Monolog\ResettableInterface.
Definition at line 119 of file BufferHandler.php.
References Monolog\Handler\BufferHandler\flush().
|
protected |
Definition at line 31 of file BufferHandler.php.
|
protected |
Definition at line 29 of file BufferHandler.php.
Referenced by Monolog\Handler\BufferHandler\__construct().
|
protected |
Definition at line 28 of file BufferHandler.php.
|
protected |
Definition at line 30 of file BufferHandler.php.
Referenced by Monolog\Handler\BufferHandler\__construct().
|
protected |
Definition at line 27 of file BufferHandler.php.
Referenced by Monolog\Handler\BufferHandler\__construct().
|
protected |
Definition at line 32 of file BufferHandler.php.