This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Where does servlet.log() actually appear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Where does servlet.log() actually appear" Watch "Where does servlet.log() actually appear" New topic

Where does servlet.log() actually appear

Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
I'm using struts framework and was wondering where the servlet.log output goes?
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
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.

"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The team, Newsletter 039.
I agree. Here's the link:
subject: Where does servlet.log() actually appear
jQuery in Action, 3rd edition