34 throw new \InvalidArgumentException(
'The first argument of the GroupHandler must be an array of HandlerInterface instances.');
47 foreach ($this->handlers as
$handler) {
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) {
79 if ($this->processors) {
82 foreach ($this->processors as $processor) {
83 $processed[] = call_user_func($processor, $record);
89 foreach ($this->handlers as
$handler) {
98 foreach ($this->handlers as
$handler) {
110 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.
Handler or Processor implementing this interface will be reset when Logger::reset() is called.