Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 21679 invoked by uid 98); 10 Dec 2002 21:30:38 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 21611 invoked from network); 10 Dec 2002 21:30:36 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 10 Dec 2002 21:30:36 -0000 Received: (qmail 86554 invoked by uid 500); 10 Dec 2002 21:29:21 -0000 Received: (qmail 86422 invoked from network); 10 Dec 2002 21:29:19 -0000 Received: from mailout01.sul.t-online.com (194.25.134.80) by daedalus.apache.org with SMTP; 10 Dec 2002 21:29:19 -0000 Received: from fwd01.sul.t-online.de by mailout01.sul.t-online.com with smtp id 18LrwH-0006ej-03; Tue, 10 Dec 2002 22:29:13 +0100 Received: from pD9E618F9.dip.t-dialin.net (320077106547-0001@[217.230.24.249]) by fmrl01.sul.t-online.com with esmtp id 18Lrw1-0xJL2OC; Tue, 10 Dec 2002 22:28:57 +0100 Subject: RE: How can I disable commons.digester debug messages? From: Zsolt Koppany To: Jakarta Commons Users List In-Reply-To: <62A8F60F13733A44A3A757425A0C10A9B82C@mailhost3.pslgroup.com> References: <62A8F60F13733A44A3A757425A0C10A9B82C@mailhost3.pslgroup.com> Content-Type: text/plain Organization: Message-Id: <1039555735.2557.3.camel@xlap.intland.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 10 Dec 2002 22:28:55 +0100 Content-Transfer-Encoding: 7bit X-Sender: 320077106547-0001@t-dialin.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have set log4j.debug=true and get messages below. Here you can see that does exist: ls -l WEB-INF/classes/log4j.properties -rw-r--r-- 1 zk users 1365 Dec 10 21:58 WEB-INF/classes/log4j.properties I use jdk-1.4.1 (Linux) Messages: log4j: Trying to find [log4j.properties] using sun.misc.Launcher$AppClassLoader@4b222f class loader. log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource(). log4j: Could not find resource: [log4j.properties]. On Tue, 2002-12-10 at 18:02, Jonathan Mangano wrote: > If this still does not work insert the line: > log4j.debug=true > > This will usually give enough information to tell you if one of your loggers is not been initialized correctly. > > -----Original Message----- > From: Jonathan Mangano > Sent: December 10, 2002 11:59 AM > To: Jakarta Commons Users List > Subject: RE: How can I disable commons.digester debug messages? > > > Just define a logger for org.apache.commons.digester with a higher threshold. > > e.g. If you are using the log4j.properties just add a line something like: > log4j.logger.org.apache=WARN, stdout, rolling > > This will isolate the log settings for all apache project log messages. > > Another good idea is to also isolate the settings your own log messages. If you create loggers with names based on your java package structure then you can simply isolate the settings for your log messages by adding the line: > log4j.logger.com.mypackage=INFO, stdout, rolling > > > > -----Original Message----- > From: Zsolt Koppany [mailto:zkoppany@web.de] > Sent: December 10, 2002 11:45 AM > To: commons-user@jakarta.apache.org > Subject: How can I disable commons.digester debug messages? > > > i, > > I use tomcat-4.1.12 with log4j-1.1.3 and would like NOT to see the debug > messages of the package "commons.digester". As you see I tried it but I > do get messages (attached) at the end. How can I disable the commons > messages? > > Zsolt > > > log4j.rootCategory=DEBUG, A1, A2 > log4j.logger.org.apache.commons=WARN > log4j.logger.org.apache.commons.beanutils=WARN > log4j.logger.org.apache.struts=WARN > > > Unwantend messages like: > > 2002-12-10 17:22:20,851 DEBUG commons.digester.Digester - > register('-//Apache Software Foundation//DTD Struts Configuration > 1.0//EN', > 'jar:file:/home/zk/CB/tomcat/cb/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd' [main] > 2002-12-10 17:22:20,853 DEBUG commons.digester.Digester - > register('-//Apache Software Foundation//DTD Struts Configuration > 1.1//EN', > 'jar:file:/home/zk/CB/tomcat/cb/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_1.dtd' [main] > 2002-12-10 17:22:20,854 DEBUG commons.digester.Digester - > register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', > 'jar:file:/hom -- Zsolt