This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
It is sorta covered in the JavaRanch Style Guide.
subject: Where does servlet.log() actually appear