Tomcat配置方法如下:
I'm not sure if you were after catalina.out or one of the other logs produced by Tomcat.
But, if you're after the catalina.out log file then follow the directions below:
-
In the servers tab, double-click on the Tomcat Server. You will get a screen called Overview.
-
Click on "Open launch configuration". Click on the "Common" tab.
-
Towards the bottom of the screen you can check the "File" checkbox and then specify a file that can be used to log your console (catalina.out) output.
-
Finally, restart the Tomcat server.
Eclipse console log 输出
Run Configuration
->Commons
->Select a file
.- Use
System.setOut(PrintStream)
andSystem.setErr(PrintStream)
.