[logback-user] Appender and zipping file
Greg Flex
greg.flex at gmail.com
Wed Nov 12 19:25:19 CET 2008
Make sense.
Thanks Ceki.
Greg.
On Wed, Nov 12, 2008 at 9:32 AM, Ceki Gulcu <listid at 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 at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20081112/60916ee4/attachment.htm
More information about the Logback-user
mailing list