Logging using Logback: Unable to suppress JBOSS default logging

Latest response

We deployed our component on JBOSS EAP 6.2. But while trying to access the application, there is a runtime exception while Logging.
The reason being , instead of the Logback (SLF4j) which is the logging framework our application is set to use, the JBOSS default logging mechanism is getting invoked.

Trying to disable JBOSS logging apis from getting loaded for this deployable did not work. [Tried this by adding jboss-deployment-structure.xml – which excludes the logging subsystems - to the application META-INF]

The “jboss-deployment-structure.xml” is attached for reference.

Attachments

Responses

What's the exact runtime exception you're getting that makes you think this is the cause? To exclude JBoss logging module in your application you just need to exclude "org.jboss.logging" from your deployment. See [1] and [2] for more information.

If this is a WAR, you need to add the jboss-deployment-structure.xml to the WEB-INF directory.

[1] https://access.redhat.com/solutions/166543
[2] https://access.redhat.com/solutions/405893