You can also find more goodies in the log4j 1 extras jar. Gary -------- Original message -------- From: Simon <[email protected]> Date: 07/03/2015 10:22 (GMT-08:00) To: Log4J Users List <[email protected]> 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 <[email protected]> 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
