Or we have to put back an archiving process independent from log4j ? -----Original Message----- From: Benjamin Jaton [mailto:benjamin.ja...@gmail.com] Sent: Monday, July 6, 2015 10:44 AM To: Log4J Users List Subject: Re: RollingFileAppeneder MaxSize + keep 30 days
Bump. So far my only option is to not use a size limit at all, and only use a "1 per day" policy and keep 30 files. Any pointer would be greatly appreciated. On Fri, Jul 3, 2015 at 4:51 PM, Benjamin Jaton <benjamin.ja...@gmail.com> wrote: > 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 >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org