multiple applications with multiple log4j.xml in weblogic

99封情书 提交于 2019-12-06 03:20:24

I don't think its possible to have different log4j.xml files for different applications deployed on the same WebLogic server unless the log4j.xml files are packaged with ear itself.

So, may be you can have different loggers for different applications? That way same log4j.xml can be used by different applications but the logger definitions the applications use can differ.

eis

Um, sure it is possible, if you configure the log4j by yourself from different files (such as log4j-app1.xml and log4j-app2.xml). You could have a configuring servlet per app. See details in this other post I made.

However, having them all in a one file, like already proposed here, is something I would also recommend.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!