1
在文檔:在log4.properties(XML)Tomcat JULI有什麼意義?
"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應用程序有自己的追加程序。所以不同的應用程序有不同的日誌爲什麼我們需要再次注意到不同Web應用程序的LogManager?
您的意思是說,所有的Web應用程序都將通用文件寫入日誌? – user710818
不,如果您沒有LogManager知道不同的Web應用程序,它會聚合所有Web應用程序的所有日誌。示例:來自'org.apache.commons.lang.StringUtils'的日誌條目最終會在每個** appender中執行,它被配置爲接收該類中的條目。 – nfechner