76 if (!is_callable($callback)) {
77 throw new \InvalidArgumentException(
'Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback,
true).
' given');
79 array_unshift($this->processors, $callback);
89 if (!$this->processors) {
90 throw new \LogicException(
'You tried to pop from an empty processor stack.');
93 return array_shift($this->processors);
111 if (!$this->formatter) {
170 }
catch (\Exception $e) {
Base Handler class providing the Handler structure.
setBubble($bubble)
Sets the bubbling behavior.
getBubble()
Gets the bubbling behavior.
getFormatter()
{Gets the formatter.FormatterInterface}
handleBatch(array $records)
{Handles a set of records at once.}
setFormatter(FormatterInterface $formatter)
{Sets the formatter.self}
close()
Closes the handler.
setLevel($level)
Sets minimum logging level at which this handler will be triggered.
__construct($level=Logger::DEBUG, $bubble=true)
pushProcessor($callback)
{Adds a processor in the stack.self}
popProcessor()
{Removes the processor on top of the stack and returns it.callable}
isHandling(array $record)
{Checks whether the given record will be handled by this handler.This is mostly done for performance ...
getDefaultFormatter()
Gets the default formatter.
getLevel()
Gets minimum logging level at which this handler will be triggered.
static toMonologLevel($level)
Converts PSR-3 levels to Monolog ones if necessary.
const DEBUG
Detailed debug information.
Interface that all Monolog Handlers must implement.
handle(array $record)
Handles a record.