33 throw new \InvalidArgumentException(
'The first argument of the GroupHandler must be an array of HandlerInterface instances.');
46 foreach ($this->handlers as $handler) {
47 if ($handler->isHandling($record)) {
58 public function handle(array $record)
60 if ($this->processors) {
61 foreach ($this->processors as $processor) {
62 $record = call_user_func($processor, $record);
66 foreach ($this->handlers as $handler) {
67 $handler->handle($record);
78 if ($this->processors) {
81 foreach ($this->processors as $processor) {
82 $processed[] = call_user_func($processor, $record);
88 foreach ($this->handlers as $handler) {
98 foreach ($this->handlers as $handler) {
An exception for terminatinating execution or to throw for unit testing.
Base Handler class providing the Handler structure.
Forwards records to multiple handlers.
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
isHandling(array $record)
{{Checks whether the given record will be handled by this handler.This is mostly done for performance...
__construct(array $handlers, $bubble=true)
setFormatter(FormatterInterface $formatter)
{{Sets the formatter.self}}
handleBatch(array $records)
{{Handles a set of records at once.}}
Interface that all Monolog Handlers must implement.