Yes, that is what I did. It's ever-so-slightly suboptimal since the file is then named BadExample.log.2002-04-30-18-01.log but I think it is the best that can be done easily.
The better way would be to have a syntax that let the date be somehow INSERTED into the file name instead of appended to it. -----Original Message----- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 1:12 PM To: Log4J Users List Subject: RE: DailyRollingFileAppender On Tue, 2002-04-30 at 23:15, Steve Cohen wrote: > Oops, I was wrong. The rollovers DO occur, but not as I expected. I guess I didn't read the doc carefully enough. I was expecting a file named BadExample.2002-04-30-18-01.log. Instead, I find the file is called BadExample.log.2002-04-30-18-01. > > Is there any way to tweak this beast to perform as I wish it to? I'm having problems with getting the DailyRollingThing working too. I think it doesn't work if append is set to true, but I have to wait until my log rolls over at midnight to check this :-) You can change the filename format (I think, I've never done this) by changing your config to: > log4j.appender.R.DatePattern=yyyy-MM-dd-HH-mm'.log' Tim. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>