Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 18643 invoked from network); 18 Aug 2006 14:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 14:26:16 -0000 Received: (qmail 29342 invoked by uid 500); 18 Aug 2006 14:26:09 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 29305 invoked by uid 500); 18 Aug 2006 14:26:09 -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 29245 invoked by uid 99); 18 Aug 2006 14:26:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 07:26:08 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dmitry.kan@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 07:26:07 -0700 Received: by nf-out-0910.google.com with SMTP id o60so1347564nfa for ; Fri, 18 Aug 2006 07:25:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=b/gtkU5KQaCTfjl5KFkcM9PBLYqY9D9O6ArhFmAad8is9JXic9czdxDdStXv4xFR6R4zQzplkcngFKwO6TYHTgIHiGisUBkG3/D1vH5bMNJxX4V70pryUiCNXP0nuzKvDrHEYoVWTILQVGnflut43yI9v01zztYZ2N3vus8l+iY= Received: by 10.49.20.5 with SMTP id x5mr3866649nfi; Fri, 18 Aug 2006 07:25:45 -0700 (PDT) Received: by 10.49.49.11 with HTTP; Fri, 18 Aug 2006 07:25:45 -0700 (PDT) Message-ID: <9a4d1d60608180725p177ad2f7l9fdb9884f3270c7d@mail.gmail.com> Date: Fri, 18 Aug 2006 17:25:45 +0300 From: "Dmitry Kan" To: "Log4J Users List" Subject: Re: Log files unlocking In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49995_11336549.1155911145672" References: <9a4d1d60608172302p3a9a0378lf37634faef33f099@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_49995_11336549.1155911145672 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline The log file is being removed with Java at the end of a public (not static) method of the class (with Log object configured). I invoke this method in main() of another class. Does it matter whether the LogManager.shutdown() is called in a static context (static method)? On 18/08/06, James Stauffer wrote: > > How (with Java or external?) and when (while program is running?) are > you trying to remove it? > > On 8/18/06, Dmitry Kan wrote: > > Hi there! > > > > I've got a small problem with unlocking log files after all logging's > done. > > I've configured the Log object for my class using PropertyConfigurator > so > > that all loggings go directly to a certain log file. The issue is that > it > > turns out to be rather tricky task to unlock that file (I need to remove > it > > after the app's done its work). I've just tried LogManager.shutdown(); > but > > it hasn't worked. Any ideas are appreciated. > > > > -- > > best wishes, > > Dmitry Kan > > > > > > > -- > James Stauffer http://www.geocities.com/stauffer_james/ > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > -- best wishes, Dmitry Kan ------=_Part_49995_11336549.1155911145672--