Kevin, What exactly do you mean by 'the application is running"? I'm using the DailyRollingFileAppender through my standalone java application. So do you mean to say that there is no way that this RollingFileAppender will work if my program is not running at the 'Rolling time instance'?? Regards, Amit -----Original Message----- From: Kevin Steppe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:29 PM To: LOG4J Users Mailing List Subject: Re: a question about the DailyRollingFileAppender Veronica, Under the current implementation the file is only copied to the new name (dogtest.log -> dogtest.log.2001-07-10) if the application is running at the time when the change should occur ie midnight. So if you stop the application before midnight and start it again the next day then it will continue to log to the same file. Is that the problem? Kevin $B=t(B wrote: > Dear Mr. > I have a trouble about the setting of the datePattern option > in DailyRollingFileAppender. > I wrote the setting as follows: > log4j.appender.D=org.apache.log4j.DailyRollingFileAppender > log4j.appender.D.File=dogtest.log > log4j.appender.D.DatePattern='.'yyyy-MM-dd > the log contents are regularly output to the file "dogtest.log", > but even the date changed, the file name won't be copied to > "dogtest.log.2001-07-10". > Would you please tell me how to solve the problem. > Thank you in advance! > Veronica Zhu > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]