Where can I view Tomcat log files in Eclipse? Ask Question

Where can I view Tomcat log files in Eclipse? Ask Question

Where can I view Tomcat log files in Eclipse?

For some reason my Tomcat installation/log folder is always empty.

BTW, does Tomcat dump to the log file after a while or is it immediate?

ベストアンサー1

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.

おすすめ記事