gpt4 book ai didi

tomcat - 什么意义上的Tomcat JULI?

转载 作者:行者123 更新时间:2023-11-28 22:22:47 26 4
gpt4 key购买 nike

在文档中:

"The key component there is a custom LogManager implementation, that is 
aware of different web applications running on Tomcat
(and their different class loaders)."

但是每个 Web 应用程序在 log4.properties (xml) 中都有自己的附加程序。所以不同的应用有不同的日志。为什么我们又需要能够识别不同 Web 应用程序的 LogManager?

最佳答案

因为您可能在不同的 Web 应用程序中拥有(实际上在大多数情况下,想想 Apache Commons)相同的类。而且您仍然希望日志条目最终出现在正确的文件中。

关于tomcat - 什么意义上的Tomcat JULI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8118994/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com