如何查看tomcat的容器日志? [英] How to check container log of tomcat?

查看:2568
本文介绍了如何查看tomcat的容器日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查tomcat的容器日志?



我从catalina.out日志中收到此错误:

 严重[localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal一个或多个侦听器无法启动。完整的详细信息将在相应的容器日志文件

中找到,但是在哪里可以找到适当的容器日志

预先感谢。

解决方案

您将在同一目录中找到引用的日志文件,其中包含引用另一个日志文件的日志。对于默认安装的Tomcat,目录为 $ CATALINA_HOME / logs 。包含所引用信息的日志文件通常是一个以Tomcat运行所在的主机名命名的文件。在简单的服务器(例如开发环境)上,这是 localhost。< datestamp> .log 。可以在此日志文件中的其他时间戳记中找到与引用日志文件中引用的引用相同的时间戳。


How do I check the container log of tomcat?

I get this error from the catalina.out log:

SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

But where can I find the "appropriate container log" that this log is referring to?

Thanks in advance.

解决方案

You'll find the referenced log file in the same directory containing the log referencing the other log file. With a default installation of Tomcat, the directory is $CATALINA_HOME/logs. The log file containing the information referenced will usually be the one named with the hostname on which Tomcat is running. On a simple server (e.g. development environment) this is localhost.<datestamp>.log. The additional error information can be found in this log file at the same timestamp as the noted reference in the referring log file.

这篇关于如何查看tomcat的容器日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆