RE: Re: Alternative naming convention for renaming files using RollingFileAppender

2009-05-12 Thread simon_park_m...@yahoo.co.uk
Hi Sarat, The TimeAndSizeRollingAppender, available for free from www.simonsite.org.uk, is a custom appender I put together to roll files by both time and by size. It adds the roll time into the backup filename and adds an index if more than one backup file is produced during the logging perio

Re: Alternative naming convention for renaming files using RollingFileAppender

2009-05-12 Thread sarat kumar
Hi Mr.Curt Arnold, Thanks very much for your suggestion. I found that class perfectly fits my bill. Thanks again for the prompt response. Thanks and Regards, Sarat Kumar Beesa. On Tue, May 12, 2009 at 6:25 PM, Curt Arnold wrote: > I believe the org.apache.log4j.rolling.RollingFileAppender in

Re: Alternative naming convention for renaming files using RollingFileAppender

2009-05-12 Thread Curt Arnold
I believe the org.apache.log4j.rolling.RollingFileAppender in the extras companion has that ability. The org.apache.log4j.rolling.RFA are the backported RFAs from the abandoned log4j 1.3 line. On May 12, 2009, at 7:13 AM, sarat kumar wrote: Hi all, I have a question on the renaming strat

Re: Alternative naming convention for renaming files using RollingFileAppender

2009-05-12 Thread Guy
Hi Sarat, You could always write the custom Appender yourself. I did because I needed to be able to rollover and zip the rollover file to limit disk space occupied (and some other custom behavior). If you like I could post code, but first I have to figure out how I did it myself :-) kind regards

Alternative naming convention for renaming files using RollingFileAppender

2009-05-12 Thread sarat kumar
Hi all, I have a question on the renaming strategy followed in the RollingFileAppender in log4j. The current logic works by rolling over the current file by appending the index count at the end. I was wondering if there's a custom appender available which can allow me to customize the renaming str