我有多个 Jenkins 实例在 Tomcat 6 实例中的不同上下文下在 localhost 下运行。我正在尝试将文件处理程序配置为从与每个应用程序关联的上下文记录器中读取。根据文档:
A context is associated with the org.apache.catalina.core.ContainerBase.[enginename].[hostname].[path]
但是当我按如下方式附加 FileHandler 时,我没有得到任何输出。
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[ABC].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[ABC].handlers = 6ABC.org.apache.juli.FileHandler
我不是 Tomcat 方面的专家,所以我不确定是否可以将主机上每个 webapp 的日志分离到单独的文件中。这是 Tomcat、Jenkins 的限制还是我的配置错误?