Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Getting rid Struts [DEBUG] output (log4j)

Graeme Kerry

Joined: Sep 12, 2004
Posts: 2

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 files but cannot find one that will surpress all [DEBUG] output. Most of the [DEBUG]'s are Digester statements.

I currently have a 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.layout.ConversionPattern=%5p [%F:%L] -%m%n

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.

Java Developer, Thailand
Graeme Kerry

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

Graeme Kerry
I agree. Here's the link:
subject: Getting rid Struts [DEBUG] output (log4j)
It's not a secret anymore!