什么意义上的Tomcat JULI



In docs:

"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中都有自己的appender。属性(xml)。不同的应用程序有不同的日志。为什么我们还需要能够感知不同web应用程序的LogManager ?

因为你可能在不同的web应用程序中有(实际上在大多数情况下会有,想想Apache Commons)相同的类。您仍然希望日志条目在正确的文件中结束。

最新更新