From harmony-dev-return-12801-apmail-incubator-harmony-dev-archive=incubator.apache.org@incubator.apache.org Mon Sep 04 09:47:37 2006 Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 78330 invoked from network); 4 Sep 2006 09:47:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 09:47:37 -0000 Received: (qmail 81217 invoked by uid 500); 4 Sep 2006 09:47:34 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 81068 invoked by uid 500); 4 Sep 2006 09:47:33 -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 81057 invoked by uid 99); 4 Sep 2006 09:47:33 -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 02:47:33 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,PLING_PLING,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stepan.mishura@gmail.com designates 64.233.162.203 as permitted sender) Received: from [64.233.162.203] (HELO nz-out-0102.google.com) (64.233.162.203) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 02:47:32 -0700 Received: by nz-out-0102.google.com with SMTP id v1so850786nzb for ; Mon, 04 Sep 2006 02:47:12 -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=QBp4CPkWZTQD3xFvwTLD+6PCxWPVq1CydpKoDC0osSQ20GByg2YZ/Re2PCOTHidAu37lpdG4bpKrZT7CkthGT1nWiHvGw+IZHIvctbximZI/RQezSpOZlIX2XgXUh7JD3deOacaDDzxLa65XluCbRJ5G/o+GTwjQ7ozlmJK3HyE= Received: by 10.65.139.9 with SMTP id r9mr2902675qbn; Mon, 04 Sep 2006 02:47:11 -0700 (PDT) Received: by 10.65.242.13 with HTTP; Mon, 4 Sep 2006 02:47:11 -0700 (PDT) Message-ID: <6e47b64f0609040247y6eaf74a2he806e511e76b4d58@mail.gmail.com> Date: Mon, 4 Sep 2006 16:47:11 +0700 From: "Stepan Mishura" To: harmony-dev@incubator.apache.org Subject: Re: [classlib][logging] a test suite shouldn't touch any of JRE config files!!! In-Reply-To: <44F7D595.7070900@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75212_21005998.1157363231434" 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> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_75212_21005998.1157363231434 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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"? Thanks, Stepan. > > > So if the property 'java.util.logging.manager' is not set a default > > implementation is used. The default implementation looks for ' > > java.util.logging.config.class' and 'java.util.logging.config.file' > > system > > properties, reads config from 'jre/lib/logging.properties' and so on. > > If the mentioned property is set then a custom LogManager class > > implementation is used. And it is up to the custom implementation how to > > load configuration. Right? > > > > But Harmony implementation follows default initialization procedure in > > any > > case. It loads the custom LogManager, looks for ' > > java.util.logging.config.class' and 'java.util.logging.config.file' > > system > > properties and if none of them are set and it forces the custom > > LogManager to read properties from 'jre/lib/logging.properties' file. > > Why? > > It is up to the custom implementation whether to read it or not. > > Did I missed something? > > > > Thanks, > > Stepan. > > > > > > > > > > ------------------------------------------------------ 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 ------=_Part_75212_21005998.1157363231434--