I'm trying to understand how to view System.out output when using
Tomcat.
When I start Tomcat, I open a DOS window and run Tomcat's startup.bat
file. As a result, stack traces and other output does show up in a DOS
window. However, I would like to send all that output to a text file. That will make it much easier to view it and work with it.
The Tomcat docs say:
"Tomcat 5.5 has done away with localhost_log which you may be familiar
with as the runtime exception/stack trace log. These types of error are
usually thrown by uncaught exceptions, but are still valuable to the
developer. They can now be found in the stdout log."
I looked in Tomcat's "logs" dir and throughout the Tomcat hierarchy for a file called "stdout" but there's nothing. The Tomcat docs omit the location and exact filename of "the stdout log".
I did a search on this issue and found the advice to edit catalina.bat to specify where to send stdout. However, looking in catalina.bat, I can't find any code that appears to have anything to do with controlling the destination of stdout.
I also tried using System.setOut() to specify a file for the output stream. No data appeared in the file.
I would appreciate any useful help I can get to resolve this.
My setup:
Tomcat 5.5.9
Windows 2000
JDK 1.4.2