This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext log file path

 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Brahim Bakayoko
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I am seeing the messages there.
Does that mean there no log file (physical file)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic