I found few details about the log4j configuration.
We do have few application already running on JBoss 3.x and I am migrating them to JBoss 7.1.1.Final.
Few of the WAR file, JAR files and EAR files. I found some documents to configure the Log4j within JBoss.
It worked great with WAR files. Still, I couldn't make it work on EAR files.
I can't use JBoss logging because it is a big application and all classes using Log4j. Now, what is the best place for log4j.properties?
I can have all EAR classes Logging to 1 configuration....
Joined: Apr 15, 2008
I have fixed it. 2 solutions.
1. add log4j.xml in to a blank jar and place it on EAR/lib directory.
2. Create a custom module which just has log4j.xml and module.xml. Include that module on JBoss deployment structure xml file. It will be picked up.
Good luck buddies. If anyone need more information, I will post the solution code here later.