File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts Logging Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Logging Question" Watch "Struts Logging Question" New topic

Struts Logging Question

Tripp Bishop

Joined: Aug 23, 2002
Posts: 21
Howdy all,
I need to prevent the Struts action servlet from dumping log statements to stdout. I've tried setting the the context debug level to 0 and also tried setting the following init-params in the WEB.xml
but the ActionServlet continues to write log statements to stdout. HELP! I need to suppress (or redirect them to a log file) these statements ASAP!
Thanks in advance,
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to the Struts forum. (They hide it under "Frameworks" ).

"JavaRanch, where the deer and the Certified play" - David O'Meara
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
I have the same question. I would to suppress this logging from occurring, but am having trouble doing so. I have also set my debug value to 0 in web.xml. Thanks.



[10/18/04 8:56:02:427 CDT] 1cc4399 SystemOut U 304678667 [Servlet.Engine.Transports:9] DEBUG org.apache.struts.util.RequestUtils - Module name found: default

[10/18/04 8:56:02:427 CDT] 1cc4399 SystemOut U 304678667 [Servlet.Engine.Transports:9] DEBUG org.apache.struts.action.RequestProcessor - Processing a 'POST' for path '/reportCriteria'
I agree. Here's the link:
subject: Struts Logging Question
It's not a secret anymore!