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

Renamed message to record

This commit is contained in:
Jordi Boggiano
2011-02-25 22:54:01 +01:00
parent efc2bd656b
commit 6c24217c56
16 changed files with 175 additions and 176 deletions

View File

@@ -16,22 +16,22 @@ use Monolog\Logger;
/**
* Blackhole
*
* Any message it can handle will be thrown away. This can be used
* Any record 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)
public function handle($record)
{
if ($message['level'] < $this->level) {
if ($record['level'] < $this->level) {
return false;
}
return false === $this->bubble;
}
public function write($message)
public function write($record)
{
}
}