mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Add DeduplicationHandler to avoid spamming the same log records over and over
This commit is contained in:
@@ -73,6 +73,12 @@ class TestHandler extends AbstractProcessingHandler
|
||||
return $this->records;
|
||||
}
|
||||
|
||||
public function clear()
|
||||
{
|
||||
$this->records = array();
|
||||
$this->recordsByLevel = array();
|
||||
}
|
||||
|
||||
protected function hasRecordRecords($level)
|
||||
{
|
||||
return isset($this->recordsByLevel[$level]);
|
||||
|
Reference in New Issue
Block a user