Description
LOG4J2-1075 included support for bzip2 compression format on file rollover, using the Apache Commons Compress library.
Gary suggested using org.apache.commons.compress.compressors.CompressorStreamFactory to create a more generic solution that lets log4j users choose from all the compression formats supported by Commons Compress.
Considerations:
- Rollover compression to .zip and .gz formats should work without error if the commons-compress jar is not in the classpath.
- XZ requires XZ for Java.
- The following documentation needs to be updated:
- DefaultRolloverStrategy section on the Appenders manual page
- Runtime dependencies page
- Core index page (again for the dependency)
The additional formats are:
- Deflate
- Pack200
- XY
BZip2 is already supported through Apache Commons Compress and LOG4J2-1075.
Attachments
Issue Links
- is superceded by
-
LOG4J2-1075 Support bzip2 compression format for rollover
- Closed