how to Configuration both Appender class in config file using log4j
DailyRollingFile开发者_如何学CAppender -- day wise rolling, RollingFileAppender -- size wise rolling -- But i want both condition in single Appender
Take a look at Log4j Extras Companion. You need to use a SizeBasedTriggeringPolicy along with a TimeBasedRollingPolicy in your appender.
More info on this log4j-user thread.
精彩评论