且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Weblogic中具有多个log4j.xml的多个应用程序

更新时间:2023-11-22 15:13:16

除非将log4j.xml文件打包到耳朵上,否则我认为不可能为部署在同一WebLogic服务器上的不同应用程序使用不同的log4j.xml文件.本身.

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.

那么,您可能为不同的应用程序使用了不同的记录器吗?这样,不同的应用程序可以使用相同的log4j.xml,但是应用程序使用的记录器定义可以不同.

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.