ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
NullHandler.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
15
25{
29 public function __construct($level = Logger::DEBUG)
30 {
31 parent::__construct($level, false);
32 }
33
37 public function handle(array $record)
38 {
39 if ($record['level'] < $this->level) {
40 return false;
41 }
42
43 return true;
44 }
45}
Base Handler class providing the Handler structure.
__construct($level=Logger::DEBUG)
Definition: NullHandler.php:29
handle(array $record)
{Handles a record.All records may be passed to this method, and the handler should discard those that...
Definition: NullHandler.php:37
Monolog log channel.
Definition: Logger.php:28
const DEBUG
Detailed debug information.
Definition: Logger.php:32