Where should I look for log output from server deployed code?

3 answers

If you're writing to stdout, the file that contains your output depends on which server you're using. For Tomcat, look in server/tomcat/logs/catalina.out. (On Windows, the filename contains a date.)
For WebSphere Application Server, look in WebSphere/AppServer/profiles/AppSrv01/logs/server1/SystemOut.log. The directory name might be different if you're using a non-default profile name or server name.
For WebSphere Application Server, look in WebSphere/AppServer/profiles/AppSrv01/logs/server1/SystemOut.log. The directory name might be different if you're using a non-default profile name or server name.