I have an EAR consisting of two modules. Both provide services and use a common code. Imagine that the ear has common.jar, shared by webservices.war and webapp.war.
I use log4j to log actions. I would like to be able to have two log files (webservices.log and webapp.log), recording events that are specific to each of them, and all the materials processed by common.jar.
How do I configure my categories and my applications to achieve this?
Currently I have the following packages:
com.myapp for sharing
com.myapp.webservices for web services and
com.myapp.webapp for webapp.
My problem is that I do not know how I can capture com.myapp (common stuff) in both log files using a single log4j configuration file. I tried to configure several configuration files, but when JBoss works fine, Websphere will break, and vice versa ...
thank
source
share