commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Mangano" <jonath...@pslgroup.com>
Subject RE: How can I disable commons.digester debug messages?
Date Tue, 10 Dec 2002 22:53:10 GMT
Where is your log4j.properties stored? By default it should be in the classpath and it should
find it automatically. The easiest is to throw it into the WEB-INF/classes of your web application.
Otherwise you have to set a system property which I think is called log4j.configuration specifying
the location of your file.

-----Original Message-----
From: Zsolt Koppany [mailto:zkoppany@web.de]
Sent: December 10, 2002 4:29 PM
To: Jakarta Commons Users List
Subject: RE: How can I disable commons.digester debug messages?


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


--
To unsubscribe, e-mail:   <mailto:commons-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-user-help@jakarta.apache.org>


Mime
View raw message