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

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2018-11-30 08:44:17 +01:00
4 changed files with 26 additions and 10 deletions

View File

@@ -69,6 +69,7 @@ class TestHandler extends AbstractProcessingHandler
{
protected $records = [];
protected $recordsByLevel = [];
private $skipReset = false;
public function getRecords()
{
@@ -81,6 +82,18 @@ class TestHandler extends AbstractProcessingHandler
$this->recordsByLevel = [];
}
public function reset()
{
if (!$this->skipReset) {
$this->clear();
}
}
public function setSkipReset(bool $skipReset)
{
$this->skipReset = $skipReset;
}
/**
* @param string|int $level Logging level value or name
*/