aspose file tools*
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
Author

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
Author
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:
if(debug>0)
debug("blah blah");
etc, etc


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: debug in server.xml