> How can I close the file from within the code? I think this is the job of > Log4j.
removeAllAppenders() will close logfile explicitly, but this might cause other problems.It depends on your implementation of the threaded class. On Wed, 14 Sep 2005 14:37:08 -0700 "Otto Leung" <[EMAIL PROTECTED]> wrote: > Make sure you don't have multiple instances running > > Regards, > O > > -----Original Message----- > From: Jitendra Kharche [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 14, 2005 9:32 AM > To: Log4J Users List > Subject: RE: RollingFileAppender does not roll > > > How can I close the file from within the code? I think this is the job of > Log4j. > > Regards, > Jitendra > > -----Original Message----- > From: 洪春植 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 13, 2005 2:52 PM > To: Log4J Users List > Subject: Re: RollingFileAppender does not roll > > see if you can rename your logfile manually, if can't, may be your threaed > class dosen't close the logfile properly. > > On Tue, 13 Sep 2005 14:49:16 +0530 > "Jitendra Kharche" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I am facing a problem with DailyRollingFileAppender. It does not roll. > > When Log4j tries to roll the file at midnight, following error occurs > > > > [9/13/05 0:00:00:195 GMT+05:30] 5ad73074 SystemErr R log4j:ERROR > > Failed to rename [C:/logs/debug-log.txt] to > > [C:/logs/debug-log.txt.2005-09-12]. > > > > I am having a web application deployed in Websphere. My application > > has a threaded class which keeps on logging periodically. The > > application may have multiple instances of this threaded class. > > However when the error occured there was only one instance running. > > > > Please help me. My log file is growing in MBs. > > > > Regards, > > Jitendra > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]