从IntelliJ Ultimate外部运行时,Tomcat的“服务器日志”在哪里?

时间:2017-08-14 02:46:45

标签: java tomcat logging intellij-idea runtime

在MacOS Sierra上从Vaadin Ultimate 2017.2外部Tomcat 8.5上运行我的IntelliJ应用时,收到错误消息:

  

神器时计-ui:战争爆炸:神器部署期间出错。有关详细信息,请参阅服务器日志。

➠这个'服务器日志'在哪里?

当我查看apache-tomcat-8.5.20> logs,该文件夹为空。实际上,我找不到在apache-tomcat-8.5.20内部署我的应用程序的任何痕迹。

➠还有其他地方IntelliJ + Tomcat放置我的应用程序和服务器日志吗?

screen shot of "Run/Debug Configurations" > "Logs" dialog box

screen shot of "Application Servers" dialog with Apache Tomcat configuration displayed

2 个答案:

答案 0 :(得分:4)

IntelliJ IDEA将“运行/调试”配置设置中的日志文件you configure显示为“运行”或“调试”工具窗口中的单独选项卡。

对于Tomcat,实际日志位于CATALINA_BASE/logs目录下。 IntelliJ IDEA设置的CATALINA_BASE的值将打印在“运行”或“调试”工具窗口的控制台中。

您还可以在idea.system.path /tomcat/<configuration name>/logs/下找到日志文件。

答案 1 :(得分:3)

IntelliJ显示Tomcat日志

accepted Answer by CrazyCoder是正确的。

此外,正如Jerry06所评论的,IntelliJ Ultimate会自动将日志显示为服务器输出窗格中的选项卡。

支持这些日志的文件存储在CATALINA_BASE中,如the other Answer中所述。

screen shot of server output panel showing (a) tabs for logs, (b) 'CATALINA_BASE' path logged

相关问题