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)) {
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) {
80 foreach ($records as $record) {
81 foreach ($this->processors as $processor) {
82 $processed[] = call_user_func($processor, $record);
85 $records = $processed;
88 foreach ($this->handlers as
$handler) {
89 $handler->handleBatch($records);
98 foreach ($this->handlers as
$handler) {
99 $handler->setFormatter($formatter);
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.
setFormatter(FormatterInterface $formatter)
{Sets the formatter.self}
Create styles array
The data for the language used.
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)} ...