Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tomcat logging stdout stderr

Tags:

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.

like image 790
user903772 Avatar asked Jun 11 '12 16:06

user903772


1 Answers

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.

like image 51
Christopher Schultz Avatar answered Nov 15 '22 03:11

Christopher Schultz