aspose file tools*
The moose likes Tomcat and the fly likes Getting rid Struts [DEBUG] output (log4j) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting rid Struts [DEBUG] output (log4j)" Watch "Getting rid Struts [DEBUG] output (log4j)" New topic
Author

Getting rid Struts [DEBUG] output (log4j)

Graeme Kerry
Greenhorn

Joined: Sep 12, 2004
Posts: 2
Hi,

I am trying to get rid of the thousands of [DEBUG] messages that scroll along the console when I start Tomcat (on Windows, on Linux these get put in catalina_out). I have tried lots of different log4j.properties files but cannot find one that will surpress all [DEBUG] output. Most of the [DEBUG]'s are Digester statements.

I currently have a log4j.properties in common/classes and also in myapp/WEB-INF/lib (i also tried in classes) but whatever I do the [DEBUG]'s remain.

I have pasted my latest attempt at a properties file below.

log4j.rootCategory=WARN, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%F:%L] -%m%n
log4j.logger.org.apache.struts=WARN

Coul anybody help me to get rid of these [DEBUG]'s, they are driving me nuts.

Thanks in advance

Graeme Kerry
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Disable Debug on console



This will help you.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Graeme Kerry
Greenhorn

Joined: Sep 12, 2004
Posts: 2
Thanks for your reply. I fixed the problem by creating a commons-logging.properties to go alongside my log4j properties file. This seemed to fix the problem.

Graeme Kerry
 
 
subject: Getting rid Struts [DEBUG] output (log4j)