Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Unwanted logging to Log Files from Commons.Digester

Thread view: 
thiaga - 20 Jul 2006 13:04 GMT
My log4j is logging unwanted messages related to Commons.Digester
This makes the size of my log files huge.

There must some property that needs to set or removed. I am clueless.

I am using weblogic 9.1 and log4j-1.2.9.jar
Please help!

An extract of the messages being logged -
"
<20 Jul 2006 17:12:34,703> <DEBUG>
<org.apache.commons.digester.Digester> register('-//Apache Software
Foundation//DTD Struts Configuration 1.0//EN',
'zip:C:/bea91/project/ccs/./servers/AdminServer/tmp/_WL_internal/consoleapp/z0ngqf/APP-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
<20 Jul 2006 17:12:34,703> <DEBUG>
<org.apache.commons.digester.Digester> register('-//Apache Software
Foundation//DTD Struts Configuration 1.1//EN',
'zip:C:/bea91/project/ccs/./servers/AdminServer/tmp/_WL_internal/consoleapp/z0ngqf/APP-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_1.dtd'
<20 Jul 2006 17:12:34,703> <DEBUG>
<org.apache.commons.digester.Digester> register('-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN',
'zip:C:/bea91/project/ccs/./servers/AdminServer/tmp/_WL_internal/consoleapp/z0ngqf/APP-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
<20 Jul 2006 17:12:34,703> <DEBUG>
<org.apache.commons.digester.Digester> register('-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN',
'zip:C:/bea91/project/ccs/./servers/AdminServer/tmp/_WL_internal/consoleapp/z0ngqf/APP-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
<20 Jul 2006 17:12:34,718> <DEBUG>
<org.apache.struts.action.ActionServlet> Scanning web.xml for
controller servlet mapping
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax>
setDocumentLocator(com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy@1aee937)
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax> startDocument()
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax>
startPrefixMapping(,http://java.sun.com/xml/ns/j2ee)
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax>
startPrefixMapping(xsi,http://www.w3.org/2001/XMLSchema-instance)
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax>
startElement(http://java.sun.com/xml/ns/j2ee,web-app,web-app)
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester>   Pushing body text ''
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester>   New match='web-app'
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester>   No rules found matching
'web-app'.
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax> characters(

 )
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester.sax>
startElement(http://java.sun.com/xml/ns/j2ee,display-name,display-name)
<20 Jul 2006 17:12:34,750> <DEBUG>
<org.apache.commons.digester.Digester>   Pushing body text '

 '"
Roland de Ruiter - 20 Jul 2006 13:23 GMT
> My log4j is logging unwanted messages related to Commons.Digester
> This makes the size of my log files huge.
[quoted text clipped - 9 lines]
> <org.apache.commons.digester.Digester> register('-//Apache Software
> Foundation//DTD Struts Configuration 1.0//EN',

Set log level for hierarcy org.apache.commons.digester explicitly, e.g.
in your log configuration file, like
     log4j.logger.org.apache.commons.digester=ERROR
or progammatically (don't know details for this, since I haven't used
Log4J for quite some while).
Signature

Regards,

Roland



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.