4 * This file is part of the Monolog package.
6 * (c) Jordi Boggiano <j.boggiano@seld.be>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Monolog\Handler;
19 * Any record it can handle will be thrown away. This can be used
20 * to put on top of an existing stack to override it temporarily.
22 * @author Jordi Boggiano <j.boggiano@seld.be>
24 class NullHandler extends AbstractHandler
27 * @param int $level The minimum logging level at which this handler will be triggered
29 public function __construct($level = Logger::DEBUG)
31 parent::__construct($level, false);
37 public function handle(array $record)
39 if ($record['level'] < $this->level) {