log4j - Howto force log4j2 to compress a file even if it does not have a standard gz or zip extension -


When using a rolling-down web app or a similar appendor for the attribute, "FilePet Tern", if we define standard extensions to live / zip log 4

Automatically compile the file as a J2 claim.

  & lt; RollingRandomAccessFile name = "RollingRandomAccessFile" fileName = "/ var / log / myapp.log" filePattern = "/ var / log / myapp.% D {yyyy_MM_dd}.% I.gz" & gt;  

I want to use a different extension instead of gz / zip, but the file is still compressed using gzip compression.

Is there any way to get this? This is not possible as log 4j2-rc1.

The decision to summarize or not, and the compression algorithm for which to use is currently determined by the "filename" filename extension.

If you want to decoil them, maybe with an additional feature and rolling file in the configuration for the RollingRand file file, please increase a feature request in Log4j2's Zira Issue Tracker. It will be ideal to provide a patch with unit tests. : -)


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -