How do you get log4j to roll files based on date and size?

Posted by Jose Chavez on Stack Overflow See other posts from Stack Overflow or by Jose Chavez
Published on 2009-04-27T19:42:15Z Indexed on 2010/06/06 7:32 UTC
Read the original article Hit count: 247

Filed under:

So log4j comes with two existing log rollers: RollingFileAppender, and DailyRollingFileAppender. Has anyone heard of an appender that does both of what the former do?

I need an appender that will roll log files based on filesize, but also append the current date to it.

I've been thinking about creating my own appender, but if there is already one that has been created, why not save the time and use that one?

© Stack Overflow or respective owner

Related posts about log4j