Title: Problem in Log4j
Hi all,
        I am using a DailyRollingFileAppender of Log4j to log messages to a file called "Sample.log". I have set the file to roll-over after everyday. But I am getting a message
 
"log4j:ERROR Failed to rename [sample.log] to [sample.log.2002-12-24]"
 
Why would this happen. The properties file set would be something like this
 
log4j.appender.DROLLING=org.apache.log4j.DailyRollingFileAppender
log4j.appender.DROLLING.File=sample.log
log4j.appender.DROLLING.append=true
log4j.appender.DROLLING.datepattern=.yyyy-MM-dd
log4j.appender.DROLLING.layout=org.apache.log4j.PatternLayout
log4j.appender.DROLLING.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n
 
 
Thanks in advance..
Babu
PS: I am using an NT System if it is helpful.
 
 
 

Reply via email to