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.
Tomcat logging stdout stderr
tomcat
tomcat
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.
Best Answer
If you run
bin/startup.bat
, then Tomcat should launch in the background and stdout/stderr should be redirected tologs/catalina.out
. If, instead, you runbin/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.