Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where can I find my log files??

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi. If my structure is something like this and I'm using log("") in my servlets, where can I find the log file???
thanks
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic