34 throw new \InvalidArgumentException(
'The first argument of the GroupHandler must be an array of HandlerInterface instances.');
47 foreach ($this->handlers as
$handler) {
48 if ($handler->isHandling($record)) {
59 public function handle(array $record)
61 if ($this->processors) {
62 foreach ($this->processors as $processor) {
63 $record = call_user_func($processor, $record);
67 foreach ($this->handlers as
$handler) {
68 $handler->handle($record);
79 if ($this->processors) {
81 foreach ($records as $record) {
82 foreach ($this->processors as $processor) {
83 $processed[] = call_user_func($processor, $record);
86 $records = $processed;
89 foreach ($this->handlers as
$handler) {
90 $handler->handleBatch($records);
98 foreach ($this->handlers as
$handler) {
110 foreach ($this->handlers as
$handler) {
111 $handler->setFormatter($formatter);
Base Handler class providing the Handler structure.
__construct(array $handlers, $bubble=true)
Handler or Processor implementing this interface will be reset when Logger::reset() is called...
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
Forwards records to multiple handlers.
setFormatter(FormatterInterface $formatter)
{Sets the formatter.self}
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.
handleBatch(array $records)
{Handles a set of records at once.The records to handle (an array of record arrays)} ...