• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where can I find my log files??

 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic