logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Smith" <anthony.sm...@fedex.com>
Subject (MaxBackupIndex) Adding the date as part of the file name.
Date Tue, 31 May 2005 13:17:50 GMT
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:anthony.smith@fedex.com] 
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.layout.ConversionPattern=%d{ISO8601} %p - %m%n


log4j.logger.intltech.autopay.beans=INFO, PRERATING

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message