From 9dba2f3431e6201589f2e08bca2b9cce48f8b094 Mon Sep 17 00:00:00 2001 From: elwin1234 Date: Wed, 14 Feb 2018 15:47:48 +0100 Subject: [PATCH] Update RotatingFileHandler.php Use own constant instead of hardcoded string for default dateFormat (const FILE_PER_DAY = 'Y-m-d';) --- src/Monolog/Handler/RotatingFileHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/RotatingFileHandler.php b/src/Monolog/Handler/RotatingFileHandler.php index a4a5ba44..78703e45 100644 --- a/src/Monolog/Handler/RotatingFileHandler.php +++ b/src/Monolog/Handler/RotatingFileHandler.php @@ -50,7 +50,7 @@ class RotatingFileHandler extends StreamHandler $this->maxFiles = (int) $maxFiles; $this->nextRotation = new \DateTimeImmutable('tomorrow'); $this->filenameFormat = '{filename}-{date}'; - $this->dateFormat = 'Y-m-d'; + $this->dateFormat = self::FILE_PER_DAY; parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking); }