ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
12 namespace Monolog\Handler;
13 
14 use Monolog\Logger;
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.
const DEBUG
Detailed debug information.
Definition: Logger.php:33
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
__construct($level=Logger::DEBUG)
Definition: NullHandler.php:29