• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to disable Struts logging?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using Tomcat, and Struts put these log info in my Tomcat log:


2005-03-14 00:03:12 StandardContext[]: Mapped to servlet 'jsp' with servlet path '/WEB-INF/pages/page1.jsp' and path info 'null' and update=true
2005-03-14 00:03:12 StandardContext[]: Mapping contextPath='' with requestURI='/usr/ac1.do' and relativeURI='/usr/act1.do'
2005-03-14 00:03:12 StandardContext[]: Mapped to servlet 'action' with servlet path '/usr/act1.do' and path info 'null' and update=true


Any advise how to disable it, and to show only the log from my own application? Many thanks in advance.


-LaoXu-
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat uses Commons-Logging.

Logging with Tomcat shows you, how you can configure the underlying logging system.

If you use log4j, you have to edit the log4j.xml file and specify the log-level vor org.apache.struts to Warn or Error.


stefan
 
That is a really big piece of pie for such a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic