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

Merge branch '1.x', clean up close/reset for 2.0, refs #997

This commit is contained in:
Jordi Boggiano
2018-11-04 22:41:52 +01:00
13 changed files with 125 additions and 30 deletions

View File

@@ -67,6 +67,18 @@ class RotatingFileHandler extends StreamHandler
}
}
/**
* {@inheritdoc}
*/
public function reset()
{
parent::reset();
if (true === $this->mustRotate) {
$this->rotate();
}
}
public function setFilenameFormat($filenameFormat, $dateFormat)
{
if (!preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) {