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 Servlets and the fly likes Where can I find my log files?? 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 » Java » Servlets
Bookmark "Where can I find my log files??" Watch "Where can I find my log files??" New topic
Author

Where can I find my log files??

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561

Hi. If my structure is something like this and I'm using log("") in my servlets, where can I find the log file???
thanks


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi
The Servlet Specification says..
log(String)
public void log(java.lang.String msg)
Writes the specified message to a servlet log file, usually an event log. The
name and type of the servlet log file is specific to the servlet container.

So its implementation specific. I guess it will be along with the same directory where servlet is residing. i.e WEB-INF/classes directory.
Let me know if I am wrong.


SCJP, SCWCD
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
thanks Lakshmeenarayana.
I finally found the location of my log file. I'm not quite sure if the location of this file depends of the IDE you're using. I'm using forte for java CE (sun ONE) and it was located in a different location from where I have my web application (i think the folder name is something like "ideuserdir", I don't remember exactly.)
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Where can I find my log files??
 
Similar Threads
Help Please -log4j:WARN No appenders could be found for logger
Where are output messages written to?
How to get log file location inside code
java game code
error in deploying servlets in tomcat