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:[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]>

Reply via email to