Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 86049 invoked from network); 4 Sep 2006 10:12:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 10:12:23 -0000 Received: (qmail 10856 invoked by uid 500); 4 Sep 2006 10:12:20 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 10483 invoked by uid 500); 4 Sep 2006 10:12:18 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 10430 invoked by uid 99); 4 Sep 2006 10:12:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 03:12:18 -0700 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,PLING_PLING,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.154 is neither permitted nor denied by domain of paulex.yang@gmail.com) Received: from [202.81.18.154] (HELO ausmtp05.au.ibm.com) (202.81.18.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 03:12:17 -0700 Received: from sd0109e.au.ibm.com (d23rh905.au.ibm.com [202.81.18.225]) by ausmtp05.au.ibm.com (8.13.6/8.13.6) with ESMTP id k84AELl16934746 for ; Mon, 4 Sep 2006 20:14:22 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0109e.au.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k84AFAFJ154162 for ; Mon, 4 Sep 2006 20:15:15 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k84A8noY004841 for ; Mon, 4 Sep 2006 20:08:49 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k84A8i1V004792 for ; Mon, 4 Sep 2006 20:08:45 +1000 Received: from [127.0.0.1] ([9.181.106.87]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006090418011844-4836 ; Mon, 4 Sep 2006 18:01:18 +0800 Message-ID: <44FBF96E.8080801@gmail.com> Date: Mon, 04 Sep 2006 18:01:18 +0800 From: Paulex Yang User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib][logging] a test suite shouldn't touch any of JRE config files!!! References: <6e47b64f0608292203w34129210ra72dd4c66463e53c@mail.gmail.com> <4d0b24970608300004h2dac39mda65662e43a7635a@mail.gmail.com> <6e47b64f0608300020j109b3181pade98a12130be4e4@mail.gmail.com> <4d0b24970608300137v5901a5f5xf9d66a85c96faea6@mail.gmail.com> <6e47b64f0608310140v1d82aabjc09778b9e276551f@mail.gmail.com> <44F7D595.7070900@gmail.com> <6e47b64f0609040247y6eaf74a2he806e511e76b4d58@mail.gmail.com> In-Reply-To: <6e47b64f0609040247y6eaf74a2he806e511e76b4d58@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 04/09/2006 18:01:18, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 04/09/2006 18:11:39, Serialize complete at 04/09/2006 18:11:39 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stepan Mishura wrote: > On 9/1/06, Paulex Yang wrote: >> >> Stepan Mishura wrote: >> > Hi Andrew, >> > >> > I've just looked into static initialization block and then to the >> > spec. for >> > LogManager class. >> > My impression is that Harmony implementation doesn't follow the spec. >> > >> > The spec. says: "At startup the LogManager class is located using >> the ' >> > java.util.logging.manager' system property.By default, the LogManager >> > reads >> > its initial configuration from a properties file >> > "lib/logging.properties" in >> > the JRE directory...." >> Stepan, >> >> I think the meaning of "By default" is debatable. Actually the spec >> looks like this: >> >> "At startup the LogManager class is located using the >> java.util.logging.manager system property. >> >> By default, the LogManager reads its initial configuration from a >> properties file "lib/logging.properties" in the JRE directory. If you >> edit that property file you can change the default logging configuration >> for all uses of that JRE. >> >> In addition, the LogManager uses two optional system properties that >> allow more control over reading the initial configuration: >> >> * "java.util.logging.config.class" >> * "java.util.logging.config.file"... >> >> " >> >> So I consider the "By default" doesn't necessarily means default case >> without "java.util.logging.manager" property, but means the default case >> without "java.util.logging.config.class/file" properties. >> >> A simple test on RI of specifying a customized MockLogManager by >> "j.u.l.manager" property shows the default "lib/logging.properties" does >> affect the behavior of the customized LogManager, say the root logger's >> level, etc. > > > Do you mean that RI resets the root logger's level of customized > LogManager > to default value from "lib/logging.properties"? Yes, so I think customized LogManager also needs to initialize itself in same procedure as j.u.l.LogManager. > > Thanks, > Stepan. > > -- Paulex Yang China Software Development Lab IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org