wood burning stoves 2.0*
The moose likes Websphere and the fly likes ServletContext log file path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "ServletContext log file path" Watch "ServletContext log file path" New topic
Author

ServletContext log file path

Brahim Bakayoko
Ranch Hand

Joined: Aug 29, 2003
Posts: 155
To which file does the ServletContext logs to in Websphere studio 5.1?
i.e, when you call: filterConfig.getServletContext().log(loginfo), where would the log file be if any in WS 5.1?
Thanks!


SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="http://webtools.servehttp.com" target="_blank" rel="nofollow">http://webtools.servehttp.com</a> down for a while...
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
I believe that the default implementation routes servlet logging to standard out, which means it would be in the WebSphere/AppServer/logs/your_server_name/SystemOut.txt file.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Brahim Bakayoko
Ranch Hand

Joined: Aug 29, 2003
Posts: 155
Thanks for the reply Kyle!
I can't seem to find the file however.
Also, shouldn't all the logs be in: ...\My Documents\IBM\wsappdev51\workspace\.metadata ?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Ah, mea culpa. I read WS 5.1 which to me means WebSphere 5.1 (as in the Application server) and not WebSphere Studio (or WSAD).
Standard out in WSAD gets routed to the console window. Are you not seeing your messages printed there?
Kyle
Brahim Bakayoko
Ranch Hand

Joined: Aug 29, 2003
Posts: 155
Yes, I am seeing the messages there.
Does that mean there no log file (physical file)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletContext log file path
 
Similar Threads
servletContext.log(String message) ?
can I use a Logger for writing debug statements?
Writing to a file through Servlet
log method of servlet context
From wher log methods come in GenericServlet