Created attachment 957401 [details] reproducer Description of problem: Even if Logging-Profile was set in META-INF, log messages are not distributed to each log file when it is using same category name. Version-Release number of selected component (if applicable): EAP 6.3.2 How reproducible: Uploaded sample.zip as reproducer. Steps to Reproduce: 1. Create new EAP 6 environment. 2. Unzip the sample.zip - Replace standalone.xml - Deploy TestLogEAR.ear 3. Run EAP 6 server. 4. Access using following URL. - http://localhost:8080/TestLogWeb1/TestServlet1 - http://localhost:8080/TestLogWeb2/TestServlet1 5. Confirm log directory. Actual results: test1.log is for TestLogWeb1. test2.log is for TestLogWeb2. However, test1.log is contained from message of TestLogWeb2.
The issue is again with jcl-over-slf4j. At this point we might need to fork it. jcl-over-slf4j uses a static instance and a map to find the logger. Because of this a logger with the same name will return the first logger created no matter which log context it was created on. For a workaround you should be able exclude org.apache.commons.logging with a jboss-deployment-structure.xml and include a jcl-over-slfj4 library in each WAR deployment. Note this issue will only appear if loggers with the same name are desired on deployments that use a new log context. For example per-deployment logging that uses commons-logging or logging-profiles that use commons-logging.