This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where does servlet.log() actually appear  RSS feed

 
Jag Bains
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using struts framework and was wondering where the servlet.log output goes?
Jag
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ActionServlet's log(String, int) method typically sends the log messages to the stdout log, as long as you have declared the init debug parameter >= the int value passed in.
However, as it is actually calling the log method inherited from GenericServlet, this is dependent on your servlet container. You can see the javax.servlet API docs for more info.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!