If you want to use your own logging and not the JBoss logging, you need to do a couple steps, per application that you want on your own logging:
Exclude JBoss logging
Write a jboss-deployment-structure.xml file to exclude the jboss log4j or slf4j or any other logging modules that are included in JBoss.
Example for a WAR...place in WAR/WEB-INF/
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.slf4j"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
Include your own jars
Simply place your own jars in your lib folder
For a WAR, place in WAR/WEB-INF/lib
Include your logging config
Simply include your own config files like normal
For a WAR, place in WAR/WEB-INF/classes
Start JBoss with a -D flag
Run your server using:
$ ./standalone.sh -Dorg.jboss.as.logging.per-deployment=false
Example for an EAR
Place jboss-deployment-structure.xml in EAR/META-INF
<jboss-deployment-structure>
<sub-deployment name="myWar.war>
<exclusions>
<module name="org.slf4j"/>
</exclusions>
</sub-deployment>
<sub-deployment name="myWar2.war>
<exclusions>
<module name="org.slf4j"/>
</exclusions>
</sub-deployment>
<sub-deployment name="myEjb.jar>
<exclusions>
<module name="org.slf4j"/>
</exclusions>
</sub-deployment>
</jboss-deployment-structure>
In EAR/lib
, include your JARS
In each deployment, add the configuration/properties
for that deployment
Start the server: $./standalone.sh -Dorg.jboss.as.logging.per-deployment=false
This should have swapped out the JBoss version of the JARs with your own, therefor allowing your own JARs and config files to get picked up. Let me know if you have any questions.