在文档中:
"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)中都有自己的appender。所以不同的应用程序有不同的日为什么我们需要再次知道不同Web应用程序的LogManager?
答案 0 :(得分:1)
因为您可能在不同的Web应用程序中拥有(实际上在大多数情况下会认为Apache Commons)相同的类。并且您仍然希望日志条目最终出现在正确的文件中。