Can someone tell what are different between this things? Moreover, I can't understand, why needs use TimeBasedRollingPolicy if DailyRollingFileAppender exists ?
Differences between org.apache.log4j.RollingFileAppender and org.apache.log4j.rolling.RollingFileAppender
7.8k Views Asked by Fire At
2
There are 2 best solutions below
0

The URL has changed and is now: http://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/rolling/RollingFileAppender.html
org.apache.log4j.RollingFileAppender is used to roll files when they reach a defined size.
org.apache.log4j.rolling.RollingFileAppender is a more generic and configurable rolling appender that allows for different rolling and triggering policies.
From the org.apache.log4j.RollingFileAppender documentation:
And the org.apache.log4j.rolling.RollingFileAppender documentation: