JBoss EAP logging stops when deploying Spring Boot application when the application excludes the JBoss Logging APIs

Solution Verified - Updated -

Issue

  • JBoss EAP logging stops when deploying Spring Boot application when add-logging-api-dependencies is set to false or the application excludes the JBoss Logging APIs using jboss-deployment-structure.xml
        <subsystem xmlns="urn:jboss:domain:logging:3.0">
            <add-logging-api-dependencies value="false"/>
20:36:52,730 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "example-spring-boot-app.war" (runtime-name: "example-spring-boot-app.war")
...
20:37:00,792 INFO  [io.undertow.servlet] (ServerService Thread Pool -- 79) 2 Spring WebApplicationInitializers detected on classpath
// there is no more logging after this point

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • Spring Boot 1.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content