Details
Description
LoggerAppenderRollingFile can only rollover one time, after that the filename property will be empty. This is caused by the realpath() function being used, when the file it is used on, is currently not existing (because it has been renamed to <filename>.1).
I created a small patch to resolve this issue
Index: LoggerAppenderRollingFile.php
===================================================================
— LoggerAppenderRollingFile.php (revision 759099)
+++ LoggerAppenderRollingFile.php (working copy)
@@ -149,9 +149,9 @@
rename($file, $target);
}
- $this->setFile($fileName, false);
unset($this->fp);
$this->activateOptions();
+ $this->setFile($fileName, false);
}
function setFileName($fileName)