1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Move the stack handling to the Logger class

This commit is contained in:
Jordi Boggiano
2011-02-25 22:00:51 +01:00
parent 1983270611
commit 903bbd0fd6
6 changed files with 40 additions and 83 deletions

View File

@@ -26,12 +26,9 @@ class NullHandler extends AbstractHandler
public function handle($message)
{
if ($message['level'] < $this->level) {
return $this->parent ? $this->parent->handle($message) : false;
return false;
}
if ($this->bubble && $this->parent) {
$this->parent->handle($originalMessage);
}
return true;
return false === $this->bubble;
}
public function write($message)