localhost.log, catalina.log, manager.log, host-manager.log 有什么区别? [英] What's the difference between localhost.log, catalina.log, manager.log, host-manager.log ?
问题描述
我正在使用 Tomee.日志文件夹包含这样的文件
I'm using Tomee. The logs folder contains files like this
- localhost_access_log.2016-12-02.txt
- localhost.2016-12-02.log
- catalina.2016-12-02.log
- host-manager.2016-12-02.log
- manager.2016-12-02.log
我在文档中寻找解释,但找不到任何东西.我的理解是那些 localhost
文件只记录主机"活动.这个对吗?这些文件有什么区别?他们是否记录了不同类型的消息?
I was looking for an explanation in the documentation but could find anything. It's my understanding that those localhost
files log only the 'host computer' activity. It this right? What is the difference between these file? Do they record different types of messages?
推荐答案
您可以在 conf/logging.properties 和 conf/server.xml 中找到访问日志的所有详细信息.
you can find all detail in conf/logging.properties and conf/server.xml for the access log.
简而言之
- catalina 是容器日志文件,
- localhost_access(仅在 server.xml 中定义了一个)访问日志(= httpd 中的所有请求),
- localhost 主机的日志,最后是
- host-manager 和 manager 相关网络应用程序的日志.
- catalina is the container log file,
- localhost_access (only one defined in server.xml) the access log (= all requests like in httpd),
- localhost the log of the host and finally
- host-manager and manager the logs of the related web applications.
这里有一个带注释的例子,试图帮助你阅读 logging.propertues:
Here a commented example to try to help you read logging.propertues:
# log on the host "localhost"
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].xxx
# log on the host "localhost" for the webapp foo
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo].xxx
更一般的模式是:
org.apache.catalina.core.ContainerBase.[${engine}].[${host}].[${context}]
旁注:${context} 是根上下文的/".
Side note: ${context} is "/" for the root context.
此语法适用于 ServletContext 日志记录
This syntax applies for ServletContext logging
一切都解释了https://tomcat.apache.org/tomcat-8.5-doc/logging.html
这篇关于localhost.log, catalina.log, manager.log, host-manager.log 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!