Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 10398 invoked from network); 11 Jun 2002 13:38:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Jun 2002 13:38:58 -0000 Received: (qmail 20004 invoked by uid 97); 11 Jun 2002 13:38:40 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 19941 invoked by uid 97); 11 Jun 2002 13:38:39 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 19862 invoked by uid 98); 11 Jun 2002 13:38:38 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D05FD4D.8070403@opikanoba.org> Date: Tue, 11 Jun 2002 15:38:21 +0200 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Laurent?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: no way to avoid log ? References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ralph Einfeldt wrote: > In this case implementing and defining a 'QuietLogger' would help. > (A logger of your own that just has empty methods) > This way you wouldn't have to patch tomcat sources. > > If this would be enough I'm not shure. Didn't look at the tomcat > sources and didn't try it on my own. ok I tried without success :( In my server.xml, if I set the of the with all is ok, I've got traces on the console. Now I create my own class inheriting from SystemOutLogger which is : public class NoneLogger extends SystemOutLogger { public void log(String msg) { } } I've got at runtime ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with NoneLogger at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:475) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:453) .... With the SystemOutLogger, I've got no exception !!! what's wrong ? -- Fr�d�ric Laurent http://www.opikanoba.org -- To unsubscribe, e-mail: For additional commands, e-mail: