Hi, Knowing I'm not the only one suffering from the rolling appender is good :)-.. My file rolls every day at midnight, however, sometimes the previous day log is saved and sometimes it just deleted (rolling, without saving the file...)
I tried both with append true and false, and It didn't succeed to solve the logging mystery. Maybe some one can share a good configuration of the rolling appender? Tnx in advance, Tamir -----Original Message----- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 8: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]>