Return-Path: Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: (qmail 50113 invoked from network); 28 Jan 2004 12:32:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Jan 2004 12:32:54 -0000 Received: (qmail 76203 invoked by uid 500); 28 Jan 2004 12:32:31 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 76056 invoked by uid 500); 28 Jan 2004 12:32:30 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 76024 invoked from network); 28 Jan 2004 12:32:29 -0000 Received: from unknown (HELO mail.qos.ch) (80.238.41.184) by daedalus.apache.org with SMTP; 28 Jan 2004 12:32:29 -0000 Received: from kal.qos.ch (kal [192.168.1.3]) by mail.qos.ch (Postfix) with ESMTP id 90DB31EC1CA; Wed, 28 Jan 2004 14:41:03 +0100 (CET) Message-Id: <5.2.1.1.0.20040128132804.029ff2b8@mail.qos.ch> X-Sender: ceki@mail.qos.ch (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Wed, 28 Jan 2004 13:32:35 +0100 To: "Log4J Developers List" , Log4J Developers List From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Re: Thoughs on Level.java In-Reply-To: <1075275944.3790.81.camel@localhost.localdomain> References: <1075273139.3790.40.camel@localhost.localdomain> <50D7D96236139F4F8628C48049C4221104702D@email.hypernoc.net> <1075273139.3790.40.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 11:45 PM 1/27/2004 -0800, Elias Ross wrote: >On Tue, 2004-01-27 at 22:58, Elias Ross wrote: > > > Level ALWAYS =3D new Level(ALWAYS_INT, "INFO", 7); > >Okay, looking at the JavaDoc, Level doesn't have a public constructor. >Why not? At first glace it didn't make a whole lot of sense. Level does not have a public a constructor because Level objects are=20 flyweights. The Level class enforces the fact that there is only once and=20 only once instance of Level.INFO, one instance of Level.DEBUG etc. within a= =20 given JVM. --=20 Ceki G=FClc=FC For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp =20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org