log4j RollingFileAppender与DailyRollingFileAppender有什么区别?
为什么我会用另一首经文呢?
为什么我会用另一首经文呢?
解决方法
阅读
http://www.mail-archive.com/log4j-user@logging.apache.org/msg08183.html
- DailyRollingFileAppender – Rotates based on dateFormat
- RollingFileAppender – Rotates based on a maximum file size.
还要检查:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html