Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 48677 invoked from network); 15 Sep 2005 06:09:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2005 06:09:25 -0000 Received: (qmail 24341 invoked by uid 500); 15 Sep 2005 06:09:23 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 24313 invoked by uid 500); 15 Sep 2005 06:09:23 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 24299 invoked by uid 99); 15 Sep 2005 06:09:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 23:09:23 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.129.226.254] (HELO aditya.pune.gsslco.co.in) (203.129.226.254) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 23:09:33 -0700 Received: from maitreya.geometricsoftware.com (maitreya.pune.gsslco.co.in [10.3.100.3]) by aditya.pune.gsslco.co.in (8.9.3/8.9.3) with ESMTP id LAA29980 for ; Thu, 15 Sep 2005 11:56:02 +0530 (IST) Received: (from root@localhost) by maitreya.geometricsoftware.com (8.11.6/8.11.6) id j8F5STB02182 for log4j-user@logging.apache.org; Thu, 15 Sep 2005 10:58:29 +0530 Received: from diamond.geometric.local (diamond.geometricsoftware.com [10.3.100.105]) by maitreya.geometricsoftware.com (8.11.6/8.11.6) with ESMTP id j8F5SEY01607 for ; Thu, 15 Sep 2005 10:58:24 +0530 X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Subject: RE: Re[2]: RollingFileAppender does not roll Date: Thu, 15 Sep 2005 11:44:59 +0530 Message-ID: <77F76B091CA8534687E2F5C5922832C604A4CD25@diamond.geometric.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re[2]: RollingFileAppender does not roll Thread-Index: AcW5mM09GeQLDNhiQ9WL81IfXrti5gAIv/eQ From: "Jitendra Kharche" To: "Log4J Users List" X-scanner: scanned by Inflex 1.0.12.3 - (http://pldaniels.com/inflex/) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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" 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" 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