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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With