java - Reduce verbosity of Tomcat Digester logger in log4j.xml -


from can tell, these obscure log messages associated digester logging component of tomcat. know how reduce verbosity of these logs?

the following debug messages repeat seemingly indefinitely 100-10,000 lines in between messages, , has added @ least 20 minutes start-up time application working due repeated context switching (as far know). there no trace of digester messages.

does obscure debug message normal anyone?

2015-08-19 10:59:30,607 debug [digester] - <  fire end() setnextrule[methodname=addoperation, pa ramtype=org.apache.tomcat.util.modeler.operationinfo]> 2015-08-19 10:59:30,607 debug [digester] - <[setnextrule]{mbeans-descriptors/mbean/operation} call o rg.apache.tomcat.util.modeler.managedbean.addoperation(org.apache.tomcat.util.modeler.operationinfo@ 2f64a8b)> 2015-08-19 10:59:30,632 debug [introspectionutils] - <introspectionutils: callmethod1 org.apache.tom cat.util.modeler.managedbean org.apache.tomcat.util.modeler.operationinfo org.apache.tomcat.util.mod eler.operationinfo> 2015-08-19 10:59:30,632 debug [digester] - <  fire end() setpropertiesrule[]> 2015-08-19 10:59:30,632 debug [digester] - <  fire end() objectcreaterule[classname=org.apache.t omcat.util.modeler.operationinfo, attributename=null]> 2015-08-19 10:59:30,632 debug [digester] - <[objectcreaterule]{mbeans-descriptors/mbean/operation} p op org.apache.tomcat.util.modeler.operationinfo> 2015-08-19 10:59:30,632 debug [sax] - <characters(      )> 2015-08-19 10:59:30,632 debug [sax] - <startelement(,,operation)> 2015-08-19 10:59:30,632 debug [digester] - <  pushing body text ' 

this log4j.xml working with.

<?xml version="1.0" encoding="utf-8"?> <!doctype log4j:configuration system "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">     <appender class="org.apache.log4j.consoleappender" name="stdout">         <layout class="my.log.syslogpatternlayout">             <param value="%d{yyyy-mm-dd't'hh:mm:ss.sssz} %t %-5p %m%n" name="conversionpattern"/>         </layout>         <filter class="my.log.filter.dynamiclevelfilter">                         <param name="usejmx" value="true" />             <param name="baseloglevelname" value="logging.baselevel.core" />         </filter>     </appender>     <appender class="org.apache.log4j.net.syslogappender" name="syslog">         <param value="local4" name="facility"/>         <param value="localhost" name="sysloghost"/>         <layout class="my.log.syslogpatternlayout">             <param value="{%t} %n{loggingfeature}|%n{loggingcomponent} [%d] - %p %m%n" name="conversionpattern"/>         </layout>     </appender>     <logger name="com.mchange.v2">         <level value="info"/>     </logger>     <logger name="org.hibernate">         <level value="info"/>     </logger>     <logger name="org.springframework">         <level value="info"/>     </logger>     <logger name="net.sf.ehcache">         <level value="info"/>     </logger>     <root>         <level value="info"/>         <appender-ref ref="stdout"/>         <appender-ref ref="syslog"/>     </root> </log4j:configuration> 

the */tomcat/conf/logging.properties file has following contents:

# licensed apache software foundation (asf) under 1 or more # contributor license agreements.  see notice file distributed # work additional information regarding copyright ownership. # asf licenses file under apache license, version 2.0 # (the "license"); may not use file except in compliance # license.  may obtain copy of license @ # #     http://www.apache.org/licenses/license-2.0 # # unless required applicable law or agreed in writing, software # distributed under license distributed on "as is" basis, # without warranties or conditions of kind, either express or implied. # see license specific language governing permissions , # limitations under license.  handlers = 1catalina.org.apache.juli.filehandler, 2localhost.org.apache.juli.filehandler, 3manager.org.apache.juli.filehandler, 4host-manager.org.apache.juli.filehandler, java.util.logging.consolehandler  .handlers = 1catalina.org.apache.juli.filehandler, java.util.logging.consolehandler  ############################################################ # handler specific properties. # describes specific configuration info handlers. ############################################################  1catalina.org.apache.juli.filehandler.level = info 1catalina.org.apache.juli.filehandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.filehandler.prefix = catalina.  2localhost.org.apache.juli.filehandler.level = info 2localhost.org.apache.juli.filehandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.filehandler.prefix = localhost.  3manager.org.apache.juli.filehandler.level = info 3manager.org.apache.juli.filehandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.filehandler.prefix = manager.  4host-manager.org.apache.juli.filehandler.level = info 4host-manager.org.apache.juli.filehandler.directory = ${catalina.base}/logs 4host-manager.org.apache.juli.filehandler.prefix = host-manager.  java.util.logging.consolehandler.level = info java.util.logging.consolehandler.formatter = java.util.logging.simpleformatter   ############################################################ # facility specific properties. # provides control each logger. ############################################################  org.apache.catalina.core.containerbase.[catalina].[localhost].level = info org.apache.catalina.core.containerbase.[catalina].[localhost].handlers = 2localhost.org.apache.juli.filehandler  org.apache.catalina.core.containerbase.[catalina].[localhost].[/manager].level = info org.apache.catalina.core.containerbase.[catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.filehandler  org.apache.catalina.core.containerbase.[catalina].[localhost].[/host-manager].level = info org.apache.catalina.core.containerbase.[catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.filehandler  # example, set org.apache.catalina.util.lifecyclebase logger log # each component extends lifecyclebase changing state: #org.apache.catalina.util.lifecyclebase.level = info  # see debug messages in tldlocationscache, uncomment following line: #org.apache.jasper.compiler.tldlocationscache.level = info 

how debug messages possibly getting in? don't want these logs here.

you want reduce tomcat logging, correct? delete logging.properties file. , appender, remove appender containing org.apache.log4j.net.syslogappender. entire one. disable tomcat logging. info spits out lot of information have observed.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -