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

后端 未结 6 591
囚心锁ツ
囚心锁ツ 2020-12-02 17:11

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?

<
6条回答
  •  北海茫月
    2020-12-02 17:47

    I know this post is a bit late but you could try out the TimeAndSizeRollingAppender. It's freely available under the Apache 2.0 license, download it from www.simonsite.org.uk.

提交回复
热议问题