• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

debug in server.xml

 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic