*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Logging Question" Watch "Struts Logging Question" New topic
Author

Struts Logging Question

Tripp Bishop
Greenhorn

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
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>0</param-value>
</init-param>
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,
Tripp
Cindy Glass
"The Hood"
Sheriff

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.

Jay

/////

[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'
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts Logging Question