1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 01:26:11 +02:00

Added docblocks and fixed a couple tests

This commit is contained in:
Jordi Boggiano
2011-02-22 12:10:54 +01:00
parent 81c6cd3ed1
commit 811e6c79d6
14 changed files with 79 additions and 15 deletions

View File

@@ -13,14 +13,25 @@ namespace Monolog\Handler;
use Monolog\Logger;
/**
* Blackhole
*
* Any message it can handle will be thrown away. This can be used
* to put on top of an existing stack to override it temporarily.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class NullHandler extends AbstractHandler
{
public function handle($message)
{
if ($message['level'] < $this->level) {
return false;
return $this->parent ? $this->parent->handle($message) : false;
}
return false === $this->bubble;
if ($this->bubble && $this->parent) {
$this->parent->handle($originalMessage);
}
return true;
}
public function write($message)