52 return $this->handler->isHandling($record);
58 public function handle(array $record)
60 return $this->handler->handle($record);
68 return $this->handler->handleBatch(
$records);
76 $this->handler->pushProcessor($callback);
86 return $this->handler->popProcessor();
94 $this->handler->setFormatter($formatter);
104 return $this->handler->getFormatter();
An exception for terminatinating execution or to throw for unit testing.
This simple wrapper class can be used to extend handlers functionality.
isHandling(array $record)
{Checks whether the given record will be handled by this handler.This is mostly done for performance ...
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
setFormatter(FormatterInterface $formatter)
{Sets the formatter.self}
pushProcessor($callback)
{Adds a processor in the stack.self}
__construct(HandlerInterface $handler)
HandlerWrapper constructor.
popProcessor()
{Removes the processor on top of the stack and returns it.callable}
getFormatter()
{Gets the formatter.FormatterInterface}
handleBatch(array $records)
{Handles a set of records at once.}
Interface that all Monolog Handlers must implement.