When log4j rolls over a file and the filePattern ends with a compressed file suffic like .gz, log4j compresses the rolled over file, which is quite useful.
What I need is to have a uncompressed as well as a compressed rolled over file. Yeah, that sounds a lot like having my cake and eating it too 😊 How can I achieve this? This would be the log4j equivalent of gzip -k <filename> which keeps the original file. I want to avoid rolling over to a gzipped file, and then uncompressing it myself. Or rolling over to uncompressed file and compressing it myself. Rather, need both files to be created by log4j Appreciate any suggestions. Thanks, -Sameer Pradhan