tomcat 中的 localhost.log 和 catalina.log 有什么区别? [英] what is difference between localhost.log and catalina.log in tomcat?

查看:60
本文介绍了tomcat 中的 localhost.log 和 catalina.log 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我为什么在tomcat服务器上创建了两个日志文件吗?

Can you please tell me why there are two log files created on tomcat server?

这两个日志文件是 localhost.log 和 catalina.log.

These two log files are localhost.log and catalina.log.

谢谢!

推荐答案

catalina.log 是 Tomcat 引擎写入与 Tomcat 本身相关的日志消息的地方.

catalina.log is where the Tomcat engine writes log messages pertaining to Tomcat itself.

每个虚拟主机都有一个日志.您只配置了一个名为 localhost 的配置,因此这就是来自该主机的日志条目所在的位置.

There's a log for each virtual host. You only have one configured, called localhost so that's where the log entries from that host go.

这篇关于tomcat 中的 localhost.log 和 catalina.log 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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