您可以在访问日志的conf/logging.properties和conf/server.xml中找到所有详细信息。
总之
- 卡塔利娜是容器的日志文件,
- localhost_access(只有一个在server.xml中所定义的)的访问日志(=像httpd的所有请求),
- localhost主机的日志,最后是
- 主机管理器 d 管理者相关Web应用程序的日志。
这里有个注释例子来试图帮助你阅读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}]
旁注:$ {}上下文是“/ “为根上下文。
这句法适用于ServletContext的记录
所有解释https://tomcat.apache.org/tomcat-8.5-doc/logging.html
相关http://stackoverflow.com/questions/12869498/what-is-difference-between-localhost-log-and-catalina -log-in-tomcat?rq = 1,已关闭。 – MWiesner