55 return $this->handler->isHandling($record);
61 public function handle(array $record)
63 return $this->handler->handle($record);
71 return $this->handler->handleBatch($records);
79 $this->handler->pushProcessor($callback);
89 return $this->handler->popProcessor();
97 $this->handler->setFormatter($formatter);
107 return $this->handler->getFormatter();
113 return $this->handler->reset();
__construct(HandlerInterface $handler)
HandlerWrapper constructor.
Handler or Processor implementing this interface will be reset when Logger::reset() is called...
popProcessor()
{Removes the processor on top of the stack and returns it.callable}
setFormatter(FormatterInterface $formatter)
{Sets the formatter.self}
pushProcessor($callback)
{Adds a processor in the stack.self}
handleBatch(array $records)
{Handles a set of records at once.The records to handle (an array of record arrays)} ...
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 ...
Interface that all Monolog Handlers must implement.
getFormatter()
{Gets the formatter.FormatterInterface}
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...