Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 43057 invoked from network); 3 Jul 2002 18:06:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Jul 2002 18:06:34 -0000 Received: (qmail 14414 invoked by uid 97); 3 Jul 2002 18:06:45 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 14380 invoked by uid 97); 3 Jul 2002 18:06:44 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 14368 invoked by uid 98); 3 Jul 2002 18:06:43 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Wed, 3 Jul 2002 11:06:31 -0700 (PDT) From: "Craig R. McClanahan" To: Jakarta Commons Developers List cc: "'Luke.Studley@cerillion.com'" Subject: Re: Support for JDK1.4 Logger in Commons Package In-Reply-To: <58031C053406D41180B200A02453F83D01A17DF0@EXCHANGEUK2> Message-ID: <20020703110059.E75270-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, 3 Jul 2002, krupa wrote: > Date: Wed, 3 Jul 2002 11:20:40 +0100 > From: krupa > Reply-To: Jakarta Commons Developers List > To: "'commons-dev@jakarta.apache.org'" > Cc: "'Luke.Studley@cerillion.com'" > Subject: Support for JDK1.4 Logger in Commons Package > > Hi there, > I have few issues when I am using Commons Logging Package... > > No Factories provided other than for Log4J: > You don't need a special factory for this -- the default factory supports JDK 1.4 logging just fine (i.e. it creates instances of org.apache.commons.logging.impl.Jdk14Logger). The actual JD 1.4 logging configuration is done in the usual way (edit "logging.properties" in $JAVA_HOME/jre/lib). Thus, when I have a statement like this in my application class: Log log = LogFactory.getLog("foo"); and don't set any of the configuration variables, I get a Log4J logger named "foo" if Log4J is present in the class path, or a JDK 1.4 logger if Log4J is not present (and I'm running on 1.4, of course). To be honest, I have no idea why Costin implemented o.a.c.l.i.Log4jFactory as a separate factory implementation, instead of just tweaking the default o.a.c.l.i.LogFactoryImpl class. But the standard factory supports JDK 1.4 just fine for me. Craig -- To unsubscribe, e-mail: For additional commands, e-mail: