This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes where we view Log file stored using servletcontext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "where we view Log file stored using servletcontext" Watch "where we view Log file stored using servletcontext" New topic
Author

where we view Log file stored using servletcontext

Kaleeswaran Karuppasamy
Ranch Hand

Joined: Jul 19, 2007
Posts: 154
i have stored logging information using this coding

ServletContext ctx=session.getServletContext();
ctx.log("Hi");

then
how and where it will stored,how to view this logging files


Judge a man by his questions rather than his answers --Voltaire
SCJP 1.5 97%
Amol Nayak
Ranch Hand

Joined: Oct 26, 2006
Posts: 218
Which container and on which platform you are running it?
Kaleeswaran Karuppasamy
Ranch Hand

Joined: Jul 19, 2007
Posts: 154
Originally posted by Amol Nayak:
Which container and on which platform you are running it?


tomcat server and linux platform
Amol Nayak
Ranch Hand

Joined: Oct 26, 2006
Posts: 218
just check the catalina.out file under logs directory..
 
Consider Paul's rocket mass heater.
 
subject: where we view Log file stored using servletcontext
 
Similar Threads
Generated Servlet class of a jsp.
log files.
static vars vs. servlet context
Again - Cannot find FacesContext
servletConfig and servletContext