29 foreach ($handlers as $handler) {
31 throw new \InvalidArgumentException(
'The first argument of the GroupHandler must be an array of HandlerInterface instances.');
44 foreach ($this->handlers as $handler) {
45 if ($handler->isHandling($record)) {
56 public function handle(array $record)
58 if ($this->processors) {
59 foreach ($this->processors as $processor) {
60 $record = call_user_func($processor, $record);
64 foreach ($this->handlers as $handler) {
65 $handler->handle($record);
76 foreach ($this->handlers as $handler) {
77 $handler->handleBatch($records);
Base Handler class providing the Handler structure.
__construct(array $handlers, $bubble=true)
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.
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)} ...