开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜