Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 92478 invoked from network); 19 Feb 2005 10:55:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Feb 2005 10:55:40 -0000 Received: (qmail 20886 invoked by uid 500); 19 Feb 2005 10:55:34 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 20839 invoked by uid 500); 19 Feb 2005 10:55:33 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 20823 invoked by uid 99); 19 Feb 2005 10:55:33 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 19 Feb 2005 02:55:33 -0800 Received: (qmail 92452 invoked from network); 19 Feb 2005 10:55:32 -0000 Received: from localhost.hyperreal.org (HELO ?127.0.0.1?) (127.0.0.1) by localhost.hyperreal.org with SMTP; 19 Feb 2005 10:55:32 -0000 Message-ID: <42171B23.5080807@apache.org> Date: Sat, 19 Feb 2005 11:55:31 +0100 From: Remy Maucherat User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Logging (was: Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm DataSourceRealm.java JAASCallbackHandler.java JAASMemoryLoginModule.java JDBCRealm.java JNDIRealm.java RealmBase.java UserDatabaseRealm.java) References: <20050218191757.48325.qmail@minotaur.apache.org> <42164FD7.2040702@apache.org> <42166AC5.702@sun.com> <42167089.1090008@apache.org> <421677B1.8080603@sun.com> <42168590.7030807@apache.org> <42169410.3010906@sun.com> In-Reply-To: <42169410.3010906@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jan Luehe wrote: > Remy, > > Remy Maucherat wrote: > >>Jan Luehe wrote: >> >>It's a little risky. We should use the container logger only while the >>classloader is initialized. >> >>It's probably far from perfect ;) > > Then how about RealmBase.authenticate()? > > RealmBase.authenticate(String username, String credentials) > uses Container.getLogger(), whereas the other RealmBase.authenticate() > methods use LogFactory.getLog(). Shouldn't this be consistent? > This is where my confusion has stemmed from. Well, yes, it's a problem. It's simple: as soon as the container is started, all the container logging should go to container.getLogger(), as it used to in Tomcat 4.x. That was my idea. > If you agree, I can help make the inconsistent cases consistent. Sure. >>In parallel, I want to start a commons component about a j.u.logging >>implementation keyed per classloader (as seen in bug 33143; it may be >>expanded a little later to allow per classloader configuration). >> >>I'm looking for committers for the proposal :) > > Sounds interesting! Actually, it's not a very interesting project ;) The support for j.u.logging is bad at the moment, as there is no (to my knowledge) implementation of j.u.logging which can realistically be used in a server like Tomcat. I hope the core (log manager + rotatable logger) can fit inside a JAR smaller than c-l-api. Before moving to commons (svn is scaring me ;) ), I think I should start putting the code together in j-t-c/juli (as mentioned, juli means Java Util Logging Implementation). Is that ok ? (and is the name ok ?) R�my --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org