logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: Compress & Delete old logs
Date Tue, 30 May 2006 20:49:21 GMT
The RollingFileAppender does not have compression support built-in.
What should happen if I set my rolling log file size to 200mb? Should
my application stop responding until the compression process is

According to this page:


The MaxSizeRollBackups property is "the maximum number of backup files
that are kept before the oldest is erased".

Are you able to roll files on a daily basis then run another program
every day to compress old log files? There may be general purpose
command line utilities that do this already.

--- Michael Schall <mike.schall@gmail.com> wrote:

> Is there a way with the rollingfile appender to have it compress
> itself as it is rolling to the next file?  I would name my logs by
> date, and would like the old files to compress (zip, cab, some format
> readable without extra installs) as a new file is being created.
> Also, is it possible to have a max number of files saved?  We would
> like to only keep the last x days of logs.
> So day to day the files would be compressed and after x days, the
> compressed files would be removed.
> Is this possible currently, or planned in the future?
> Mike

View raw message