I want my MaxBackupIndex to be unlimited. I read something about how it can take a long time rename all the files once with new indexes if you make the value too large. But since my filenames will have the date included, this would not be an issue correct? So is there a way to make it unlimited or what is the largest number that I can use?
-----Original Message----- From: Anthony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 8:12 AM To: Log4J Users List Subject: Adding the date as part of the file name. I want my log file to ed with the current date which means it will start a new log file each day... Well actually is there is more than one file because of my max file size I want it to end with the backup index. Right now it just creates the files as prerating.log.1, prerating.log.2, and so on... I don't know how to add the date as part of the file name. I thought this line did that: log4j.appender.PRERATING.DatePattern='.'yyyy-MM-dd log4j.appender.PRERATING=org.apache.log4j.RollingFileAppender log4j.appender.PRERATING.MaxFileSize=1MB log4j.appender.PRERATING.MaxBackupIndex=10 log4j.appender.PRERATING.DatePattern='.'yyyy-MM-dd log4j.appender.PRERATING.File=${log.dir}/prerating.log log4j.appender.PRERATING.layout=org.apache.log4j.PatternLayout log4j.appender.PRERATING.layout.ConversionPattern=%d{ISO8601} %p - %m%n log4j.logger.intltech.autopay.servlets.PreRateRatingServlet=INFO, PRERATING log4j.logger.intltech.autopay.beans=INFO, PRERATING --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
