You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Benjamin Jaton <be...@gmail.com> on 2015/07/03 00:53:47 UTC
RollingFileAppeneder MaxSize + keep 30 days
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
Re: RollingFileAppeneder MaxSize + keep 30 days
Posted by Simon <si...@yahoo.co.uk>.
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 <be...@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