tomcat logging stdout stderr

tomcat

Solution

If you run `bin/startup.bat`, then Tomcat should launch in the background and stdout/stderr should be redirected to `logs/catalina.out`. If, instead, you run `bin/catalina.sh run` (note the additional command-line argument "run"), then Tomcat should run in the console and all stdout/stderr should be displayed there.

Problem

I start tomcat using the startup command in bin. How can I log to println to stdout and error to stderr instead of console? Which is the file to modify and how to modify? am using windows server 2008.

Original source