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
