[
https://issues.apache.org/jira/browse/LOG4PHP-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Habunek updated LOG4PHP-164:
---------------------------------
Priority: Minor (was: Major)
Affects Version/s: (was: 2.3)
2.1
I agree with the general idea. A couple of thoughts:
1. Make compression optional since it uses up resources
2. The simplest way (load log file, compress, save) can use up all memory if
the file is big. Compression should be done in chunks or use streams.
3. Maybe we can add an option to log to a compressed file right away. It is
possible by using compression stream wrappers, for example:
file_put_contents('compress.zlib://data.gz', $data, FILE_APPEND);
This way we don't have to compress large files on rollover.
Just some thing to think about...
> Compress rotated files with Gzip/Zip
> ------------------------------------
>
> Key: LOG4PHP-164
> URL: https://issues.apache.org/jira/browse/LOG4PHP-164
> Project: Log4php
> Issue Type: New Feature
> Components: Code
> Affects Versions: 2.1
> Reporter: Florian Semm
> Priority: Minor
> Fix For: 2.3
>
>
> rotated files at the moment look like this: file.log.1
> with compression: file.log.1.zip / file.log.1.gz
> php has a simple api for that: http://php.net/manual/de/book.zip.php
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira