Reproducer of BZ1374457 "Logging profile with apache commons does not work in JBoss EAP 6"
WARNING: build.sh
deletes files under JBOSS_HOME
! Do not run it before you look what it does!
To run the reproducer, set JBOSS_HOME
environment variable first
export JBOSS_HOME="/path/to/jboss-eap-6.4"
Then run build.sh
in the directory of this README
./build.sh -eap6 # for EAP 6
# or
./build.sh -eap7 # for EAP 7
In this revision of the reproducer, we apply the workaround proposed by James Perkins in WFCORE-254:
-
We include
jcl-over-slf4j.jar
in the wars and -
We exclude
org.apache.commons.logging
in thejboss-deployment-structure.xml
.
With this workaround, the log statements issued from the two apps go to the proper separate files $JBOSS_HOME/standalone/log/app-1.log
$JBOSS_HOME/standalone/log/app-2.log
.