I have a problem with logging in JBoss AS 7.1.
I'm using Logback for all the logs of my application. Logback exposes the SLF4J interface. I'm using JCL-over-SLF4J and Log4J-over-SLF4J to create a bridge from the others logging frameworks and the SLF4J interface.
It works fine for my code and for all the frameworks used in my project (mybatis, primefaces, etc.) but not for springframework.
Springframework still logs with the JBoss logger (org.slf4j.impl.Slf4jLogger).
I've tried to exclude the jar in the jboss-deployment-structure.xml:
<module name="org.slf4j" />
<module name="org.slf4j.impl" />
<module name="org.apache.log4j" />
but I haven't solved the problem. I think that Spring calls correctly the JCL-over-SLF4J, but this library calls the JBoss logger and not the Logback implementation.
What I can do to solve this problem?
Thanks in advance and sorry for my bad english.
You might need to also exclude org.slf4j.jcl-over-slf4j. Other than that it should work, at least I don't see why it wouldn't.
James R. Perkins