eclipse 配置tomcat server 以及console 日誌輸出路徑

Tomcat配置方法以下:

I'm not sure if you were after catalina.out or one of the other logs produced by Tomcat.spa

But, if you're after the catalina.out log file then follow the directions below:rest

  • In the servers tab, double-click on the Tomcat Server. You will get a screen called Overview.code

  • Click on "Open launch configuration". Click on the "Common" tab.server

  • 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.ip

  • Finally, restart the Tomcat server.ci

 Eclipse console log 輸出

  1. Run Configuration->Commons->Select a file.
  2. Use System.setOut(PrintStream) and System.setErr(PrintStream).
相關文章
相關標籤/搜索