You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by 洪春植 <ho...@solutions.sh> on 2005/09/15 08:53:37 UTC
Re[4]: RollingFileAppender does not roll
how about this?
in your threaded class where performing logging process add
synchronized (lock)
{
//all logging process here.
}
On Thu, 15 Sep 2005 11:44:59 +0530
"Jitendra Kharche" <Ji...@geometricsoftware.com> wrote:
>
> If I understood your reply correctly, I think calling removeAllAppenders() will be a problem because my application is running at the time of rolling.
>
> Regards,
> Jitendra
>
> -----Original Message-----
> From: 洪春植 [mailto:hongcz@solutions.sh]
> Sent: Thursday, September 15, 2005 7:20 AM
> To: Log4J Users List
> Subject: Re[2]: RollingFileAppender does not roll
>
> > 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" <ol...@traversenetworks.com> wrote:
>
> > Make sure you don't have multiple instances running
> >
> > Regards,
> > O
> >
> > -----Original Message-----
> > From: Jitendra Kharche [mailto:Jitendra.Kharche@geometricsoftware.com]
> > 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:hongcz@solutions.sh]
> > 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" <Ji...@geometricsoftware.com> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org