Reputation: 1562
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.
Upvotes: 5
Views: 11706
Reputation: 20837
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.
Upvotes: 9