
Make sense. Thanks Ceki. Greg. On Wed, Nov 12, 2008 at 9:32 AM, Ceki Gulcu <listid@qos.ch> wrote:
Hello Greg,
The last file is the active log file. It cannot be compressed, at least not with the current RollingFileAppender. If we changed the policy to compress the active upon exit, i.e closing of the RollingFileAppender, then when and if the application was restarted and time came to compress the log file there would be a collision, the archive file would not created because it already existed, leading to loss of data.
I am afraid you have to compress the last file on your own.
Greg Flex wrote:
Hi Guys, I'm using the RollingOverAppender with the TimeBasedRollingPolicy that also automatically zips the file. However when running it for, say, 24 hours with rolling policy of one hour only 23 files get zipped. The same applies if rolling policy is set to a minute; the last file never gets zipped. Anyway I just want to find out if there is a way to tell the RollingoverAppender that the very last file also needs to be zipped even if the full hour hasn't passed yet. Thanks for any info. Greg.
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user