RE: RollingFileAppender enhancement for file compression

2022-05-20 Thread Alexander Lambert (HE/HIM)
ing-log4j2 (e.g. compression actions, file managers) - I'm not sure if it could easily be split off into its own appender. -Original Message- From: Volkan Yazıcı Sent: Thursday, May 5, 2022 3:11 PM To: Apache Logging Developers List Subject: Re: RollingFileAppender enhancement for f

Re: RollingFileAppender enhancement for file compression

2022-05-05 Thread Volkan Yazıcı
I agree with Ralph here. My suggestion would be to publish this custom appender as a separate F/OSS project first. It can certainly be contributed back to Log4j at a later stage depending on its reception by the community. On Thu, May 5, 2022 at 9:27 AM Ralph Goers wrote: > While useful I have c

Re: RollingFileAppender enhancement for file compression

2022-05-05 Thread Ralph Goers
How is that different than what it already does? Today we simply inspect the file extension and compress using that method after rollover. Ralph > On May 5, 2022, at 9:47 AM, Priyanka Pardesi Ramachander > wrote: > > Hi All, > > How about this approach instead?.. > -> A new Boolean config op

Re: RollingFileAppender enhancement for file compression

2022-05-05 Thread Priyanka Pardesi Ramachander
Hi All, How about this approach instead?.. -> A new Boolean config option "fileCompression" for the RollingFileAppender. -> If true, the log is written to FileOutputStream (as usual). -> And at the time of rollover, compress the file (as .gz, .zip, etc) and delete the original file. In case of any

Re: RollingFileAppender enhancement for file compression

2022-05-05 Thread Ralph Goers
While useful I have concerns as to what the state of the file would be if the application dies. Also, is the file readable as it is being written? The RollingAppenders are already overly complicated so I am reluctant to add new features without doing something to simplify them. Ralph > On May

Re: RollingFileAppender enhancement for file compression

2022-05-04 Thread Matt Sicker
That sounds pretty useful to me. Using the existing compression actions could make it so you can more easily support other compression formats. On Wed, May 4, 2022 at 4:44 PM Alexander Lambert (HE/HIM) wrote: > > Hi all, > > We have a local modification to logging-log4j2/log4j-core that we are ho

RollingFileAppender enhancement for file compression

2022-05-04 Thread Alexander Lambert (HE/HIM)
Hi all, We have a local modification to logging-log4j2/log4j-core that we are hoping to contribute back to open source. We modify the RollingFileAppender, adding a config option to compress the file as it is originally written instead of on rollover. The value of this is in reducing the volume