Java 从 IntelliJ Ultimate 外部运行时,Tomcat 的“服务器日志”在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45666791/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is the "server log" for Tomcat when running externally from IntelliJ Ultimate?
提问by Basil Bourque
When running my Vaadinapp on Tomcat8.5 externally from IntelliJUltimate 2017.2 on macOS Sierra, I get an error message:
从macOS Sierra 上的IntelliJUltimate 2017.2外部在Tomcat8.5上运行我的Vaadin应用程序时,我收到一条错误消息:
Artifact timepiece-ui:war exploded: Error during artifact deployment. See server log for details.
Artifact timepiece-ui:war 爆炸:工件部署过程中出错。有关详细信息,请参阅服务器日志。
? Where is this ‘server log'?
? 这个“服务器日志”在哪里?
When I look in apache-tomcat-8.5.20
> logs
, the folder is empty. Indeed, I cannot find any trace of my app being deployed within apache-tomcat-8.5.20
.
当我查看apache-tomcat-8.5.20
> 时logs
,该文件夹为空。事实上,我找不到我的应用程序在apache-tomcat-8.5.20
.
? Is there some other place where IntelliJ+Tomcat is placing my app and the server logs?
? IntelliJ+Tomcat 是否还有其他地方放置我的应用程序和服务器日志?
采纳答案by CrazyCoder
IntelliJ IDEA shows the log files you configurein the Run/Debug configuration settings as the separate tabs in the Run or Debug tool window.
IntelliJ IDEA 将您在运行/调试配置设置中配置的日志文件显示为运行或调试工具窗口中的单独选项卡。
For Tomcat the actual logs are placed under CATALINA_BASE/logs
directory. The value of the CATALINA_BASE
set by IntelliJ IDEA will be printed in the console of the Run or Debug tool window.
对于 Tomcat,实际日志放置在CATALINA_BASE/logs
目录下。CATALINA_BASE
IntelliJ IDEA 设置的值将打印在 Run 或 Debug 工具窗口的控制台中。
You can also find the log files under idea.system.path/tomcat/<configuration name>/logs/
.
您还可以在idea.system.path下找到日志文件/tomcat/<configuration name>/logs/
。
回答by Basil Bourque
IntelliJ displays Tomcat logs
IntelliJ 显示 Tomcat 日志
The accepted Answer by CrazyCoderis correct.
在通过CrazyCoder接受的答案是正确的。
In addition, as commented by Jerry06, IntelliJ Ultimate does automatically display the logs as tabs in the server output pane.
此外,正如 Jerry06 所评论的那样,IntelliJ Ultimate 会自动将日志显示为服务器输出窗格中的选项卡。
The files backing those logs are stored in the CATALINA_BASE
as explained in the other Answer.
支持这些日志的文件存储在另一个 Answer 中CATALINA_BASE
解释的.