ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
WhatFailureGroupHandler.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of the Monolog package.
5 *
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Monolog\Handler;
13
21{
25 public function handle(array $record)
26 {
27 if ($this->processors) {
28 foreach ($this->processors as $processor) {
29 $record = call_user_func($processor, $record);
30 }
31 }
32
33 foreach ($this->handlers as $handler) {
34 try {
35 $handler->handle($record);
36 } catch (\Exception $e) {
37 // What failure?
38 }
39 }
40
41 return false === $this->bubble;
42 }
43
47 public function handleBatch(array $records)
48 {
49 foreach ($this->handlers as $handler) {
50 try {
51 $handler->handleBatch($records);
52 } catch (\Exception $e) {
53 // What failure?
54 }
55 }
56 }
57}
Forwards records to multiple handlers.
Forwards records to multiple handlers suppressing failures of each handler and continuing through to ...
handleBatch(array $records)
{{{Handles a set of records at once.}}}
handle(array $record)
{{Handles a record.All records may be passed to this method, and the handler should discard those tha...
$records
Definition: simple_test.php:17