Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 28110 invoked from network); 5 Oct 2007 19:07:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 19:07:52 -0000 Received: (qmail 44458 invoked by uid 500); 5 Oct 2007 19:07:34 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 44409 invoked by uid 500); 5 Oct 2007 19:07:34 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 44397 invoked by uid 99); 5 Oct 2007 19:07:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 12:07:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 19:07:34 +0000 Received: (qmail 17447 invoked from network); 5 Oct 2007 14:04:37 -0500 Received: from 72-19-171-38.static.mesanetworks.net (HELO ?192.168.3.103?) (72.19.171.38) by halosg.com with SMTP; 5 Oct 2007 14:04:37 -0500 Message-ID: <47068B5F.7010102@hanik.com> Date: Fri, 05 Oct 2007 13:07:11 -0600 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: JdkLoggerConfig missing? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dain Sundstrom wrote: > I've been trying to figure out how Tomcat initializes it's logging and > am now very confused. It appears that the juli is initialized in this > static block in DirectJDKLog. > > private static final String > SIMPLE_FMT="org.apache.tomcat.util.log.JdkLoggerFormatter"; > private static final String > SIMPLE_CFG="org.apache.tomcat.util.log.JdkLoggerConfig"; > > static { > if( System.getProperty("java.util.logging.config.class") > ==null && > System.getProperty("java.util.logging.config.file") > ==null ) { > // default configuration - it sucks. Let's override at > least the > // formatter for the console > try { > Class.forName(SIMPLE_CFG).newInstance(); > } catch( Throwable t ) { > } > > > The reason, I'm confused is the JdkLoggerConfig doesn't seem to > exist. I searched google and found the source in a sandbox branch, > but I don't think it was ever coppied to trunk. > > Anyway, anyone know where logging is initialized now days? it's always specified as -Djava.util.logging.config.class in catalina.bat/catalina.sh with the releases that Tomcat ship. initialization is in the LogFactory.getLog(...), this calls DirectJDKLog(...) and that calls java.util.Logger.getLogger(...), and this guy, reads the system property Filip > > > Thanks, > > -dain > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org