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

debug in server.xml

Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
Hi everybody,
It may be a quite simply question..
What does it mean to have 'debug=0' ? :
<Context path="/MyWebapp" docBase="MyWebapp" debug="0" reloadable="0"/>
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
you can set the level of logging that is available to your application. Basically, the logging in the servlet spec allows you to see differently grained versions of logging messages. You would set the logging ot quite high in development so that you find out at each step what is happening in your app. Once it goes into production you only want to see errors. In the old spec, you then checked the debug level:
debug("blah blah");
etc, etc

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
subject: debug in server.xml
It's not a secret anymore!