aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where can I find my log files??