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:[EMAIL PROTECTED]]
Sent: December 10, 2002 11:45 AM
To: [EMAIL PROTECTED]
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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to