I'm sorry my question was for log4j2, I should have been more precise :) On Fri, Jul 3, 2015 at 10:29 AM, Gary Gregory <garydgreg...@gmail.com> wrote:
> You can also find more goodies in the log4j 1 extras jar. > Gary > > -------- Original message -------- > From: Simon <simon_park_m...@yahoo.co.uk> > Date: 07/03/2015 10:22 (GMT-08:00) > To: Log4J Users List <log4j-user@logging.apache.org> > Subject: Re: RollingFileAppeneder MaxSize + keep 30 days > > If you're stuck on Log4J 1.2 then you could try out the > TimeAndSizeRollingAppender available at www.simonsite.org.uk. > > Sent from TypeMail > > > > On 2 Jul 2015 23:54, at 23:54, Benjamin Jaton <benjamin.ja...@gmail.com> > wrote: > >Hello, > > > >How can I define a RollingFileAppender that would roll when it reaches > >100MB, and that would discard any log older than 30 days (not before)? > > > >I need to keep 30 days of logs for auditing purposes, but I also want > >to > >limit the logs to a certain size as well. > > > >Thanks! > >Ben >