Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.0
-
None
-
None
-
PHP 5.4, CentOS 5.11
Description
I have been using log4php for a long while now (ver 2.3.0) in a simple web application running on PHP 5.4.
I've recently changed my log4php.xml config file to add compression and increased max file size, like so:
<appender name="MyFileAppender" class="LoggerAppenderRollingFile"> <layout class="LoggerLayoutTTCC" /> <param name="file" value="/path/to/my_log_file.log" /> <param name="maxFileSize" value="2000MB" /> <param name="compress" value="true" /> <param name="maxBackupIndex" value="10" /> </appender>
What seems to happen is that the files are rotated, after 2GB as intended, however the files are not archived (and of course no .gz extension is added). Furthermore, the output of php -r "print(extension_loaded('zlib'));" is 1
Am I missing something in the configuration? Can I provide further information to debug the issue?