本文介绍了在DailyRollingFileAppender -log4j中使用MaxBackupIndex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我如何在DailyRollingFileAppender中使用MaxBackupIndex.我知道RollingFileAppender支持maxBackupIndex属性,但是在DailyRollingFileAppender中使用MaxBackupIndex是否有任何变通办法?

Can someone please tell me how to use MaxBackupIndex in DailyRollingFileAppender.I know that the RollingFileAppender supports a maxBackupIndex property, but is there any workarounds for using MaxBackupIndex in DailyRollingFileAppender?

推荐答案

此功能在Log4j的当前稳定版本(1.2)中不可用.

This feature is not available in current stable version (1.2) of Log4j.

无论如何,您都可以探索以下内容: http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

Anyway you can explore the following:http://wiki.apache.org/logging-log4j/DailyRollingFileAppender

这篇关于在DailyRollingFileAppender -log4j中使用MaxBackupIndex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-17 21:19