Thanks Paul !!!! I wil try it definitely.
Regards Vik -----Original Message----- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 3:50 AM To: 'Log4J Users List' Subject: RE: [HELP][HELP][HELP][HELP] RollingFileAppender on Windows Platform I've got 0 experience with RollingFileAppender, but I think under Windows it has this problem. Have you tried the DailyRollingFileAppender? It's a different class, and while it does not have a max-backup property, it definitely rolls over properly under windows when the date pattern triggers it. Might be worth a shot. Cheers, Paul Smith > -----Original Message----- > From: Vikas Yadav [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 7:11 PM > To: Log4J Users List > Subject: [HELP][HELP][HELP][HELP] RollingFileAppender on Windows Platform > > Hello everyone, > > Can any of you answer my problem....... has anybody faced it ????? > > Its URGENT !!!!!!! > > Regards > Vikas Yadav > SMTS - Deploy India > Intersolutions Pvt. Ltd. > [O] +91-120-2585702 /3 /4 Ext.: 506 > > > -----Original Message----- > From: Vikas Yadav [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 18, 2004 4:42 PM > To: [EMAIL PROTECTED] > Subject: RollingFileAppender on Windows Platform > > > Hi, > > I am facing a typical problem when I use log4j on Windows platform. The > > problem is that it overwrites the existing log file when it reaches to > > maximum size even though I have given maximum no of backups to 50. Below > is > > the XML file where I have defined properties. > > <appender name="Default" class="org.apache.log4j.RollingFileAppender"> > > <param name="File" value="d:/abc/data/Logs/log.txt"/> > > <param name="MaxFileSize" value="2000KB"/> > > <param name="MaxBackupIndex" value="50"/> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="[XCT v%X{version}] %d %-5p%c(%F:%L) > - > %m%n"/> > > </layout> > > </appender> > > It works fine on solaris. Please help... ASAP. This is very critical issue > > for me. > > Cheers > > Vik > > Regards > Vikas Yadav > SMTS - Deploy India > Intersolutions Pvt. Ltd. > [O] +91-120-2585702 /3 /4 Ext.: 506 > > > > > --------------------------------------------------------------------- > 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]