This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: debug in server.xml
 
Similar Threads
Problem...
how to auto re-load the classes without shutting down the JVM?
Virtual Host Configuration in Tomcat 4.01
where is my webapp?
I'm not able to deploy to Tomcat 5.0.19