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

Reply via email to