Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1077

Support additional Apache Commons Compress compression formats on rollover: Deflate, Pack200, XY

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Appenders
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                garydgregory Gary Gregory
                Reporter:
                remkop@yahoo.com Remko Popma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: