diff options
Diffstat (limited to 'src/Monolog/Handler/NullHandler.php')
-rw-r--r-- | src/Monolog/Handler/NullHandler.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Monolog/Handler/NullHandler.php b/src/Monolog/Handler/NullHandler.php new file mode 100644 index 0000000..cd7229e --- /dev/null +++ b/src/Monolog/Handler/NullHandler.php @@ -0,0 +1,29 @@ +<?php + +/* + * This file is part of the Monolog package. + * + * (c) Jordi Boggiano <j.boggiano@seld.be> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Monolog\Handler; + +use Monolog\Logger; + +class NullHandler extends AbstractHandler +{ + public function handle($message) + { + if ($message['level'] < $this->level) { + return false; + } + return false === $this->bubble; + } + + public function write($message) + { + } +}
\ No newline at end of file |