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 log method of servlet context 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 "log method of servlet context" Watch "log method of servlet context" New topic
Author

log method of servlet context

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
log
public void log(java.lang.String msg)
log
public void log(java.lang.Exception exception,
java.lang.String msg)
log
public void log(java.lang.String message,
java.lang.Throwable throwable)

With the above log methods of the ServletContext,where the log file gets created.Where can we view those logs?


Thanks,
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

Where the log files are created is depends on which web server you are using.

For tomcat, you can see the log files under directory.
TOMCAT_HOME/logs/

And by default,logs goes to file.
TOMCAT_HOME/logs/localhost.<CURRENT DATE>.txt


[Servlet tutorial] [Servlet 3.0 Cook Book]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log method of servlet context
 
Similar Threads
HELP! Problems with Buffer/Response Committed
access object in a vector
Where can I find my log files??
Servlet log method
confusing statics!!!