Tomcat 日志冲突
我正在使用 Tomcat 5.5 和一个由“插件”组成的网络应用程序。
其中一个插件依赖于使用 log4j 的 jar 库。
当我使用 log4j 部署 jar 时,Tomcat 似乎开始依赖 log4j 进行日志记录。
这些 jar 位于 WEB-INF/lib 中。
我想分离日志记录,以便 tomcat 使用标准日志记录和插件自己的日志记录。(log4j)
如何告诉 Tomcat 忽略 log4j?
还有更多吗?
I am using Tomcat 5.5 with a web-app that consists of "plug-ins".
One of the plug-ins depend on a jar library that makes use of log4j.
When I deploy the jar with log4j it seems that Tomcat starts relying on log4j for logging.
The jars are placed in WEB-INF/lib
.
I want to separate the logging in order for tomcat to use the standard logging and the plugin its own logging.(log4j)
How can I tell Tomcat to ignore log4j?
Is there more to it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们能够说服供应商提供一种日志记录驱动程序配置,允许用户不使用 log4j 并指定自己的日志记录驱动程序。
We were able to convince the vendor to provide a Logging driver configuration that allows one to not use log4j and specify ones own logging driver.