在DailyRollingFileAppender中使用MaxBackupIndex -log4j[英] Use MaxBackupIndex in DailyRollingFileAppender -log4j

本文是小编为大家收集整理的关于在DailyRollingFileAppender中使用MaxBackupIndex -log4j的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

有人可以告诉我如何在dailyrolllingfileappender中使用maxbackupIndex.我知道RollingFileAppender支持MaxBackupIndex属性,但是是否有任何可用于在DailyrollollingFileAppender中使用MaxBackupIndex的解决方法?

推荐答案

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

无论如何,您可以探索以下内容:

本文地址:https://www.itbaoku.cn/post/1574768.html

问题描述

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?

推荐答案

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

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