log4j - how to set max number of generated log files

R

RN

Hi all,
Is there any way to set max number of files created by log4j (DailyRollingFileAppender) ?
I mean something like setMaxBackupIndex in RollingFileAppender.
thanks in advance
rafal
 
B

Bryce

Hi all,
Is there any way to set max number of files created by log4j =
(DailyRollingFileAppender) ?
I mean something like setMaxBackupIndex in RollingFileAppender.
thanks in advance
rafal

There is one for RollingFileAppender
See:
http://logging.apache.org/log4j/docs/api/org/apache/log4j/RollingFileAppender.html

Property
MaxBackupIndex =

I didn't see one for DailyRollingFileAppender. And despite the similar
name, they both extend FileAppender, so DailyRollingFileAppender isn't
a child of RollingFileAppender...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top