[jboss-jira] [JBoss JIRA] (WFCORE-4910) Log WARN if JBoss Logging Handler gets removed

James Perkins (Jira) issues at jboss.org
Wed Apr 8 12:00:06 EDT 2020


     [ https://issues.redhat.com/browse/WFCORE-4910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins updated WFCORE-4910:
----------------------------------
    Description: 
Spring Boot when add-logging-api-dependencies=false and jul-to-slf4j.jar is packaged in the app, that it will remove all handlers from the root logger, which includes JBoss Logging's Handler resulting in logging to stop.

{code}
20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.slf4j.bridge.SLF4JBridgeHandler.removeHandlersForRootLogger(SLF4JBridgeHandler.java:-1)
20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.removeJdkLoggingBridgeHandler(Slf4JLoggingSystem.java:78)
20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.configureJdkLoggingBridgeHandler(Slf4JLoggingSystem.java:61)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.beforeInitialize(Slf4JLoggingSystem.java:41)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.log4j2.Log4J2LoggingSystem.beforeInitialize(Log4J2LoggingSystem.java:136)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:231)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:210)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.SpringApplication.run(SpringApplication.java:292)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:156)
20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:136)
20:37:01,191 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
20:37:01,191 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
{code}



> Log WARN if JBoss Logging Handler gets removed	
> -----------------------------------------------
>
>                 Key: WFCORE-4910
>                 URL: https://issues.redhat.com/browse/WFCORE-4910
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Logging
>            Reporter: Bartosz Baranowski
>            Assignee: James Perkins
>            Priority: Major
>
> Spring Boot when add-logging-api-dependencies=false and jul-to-slf4j.jar is packaged in the app, that it will remove all handlers from the root logger, which includes JBoss Logging's Handler resulting in logging to stop.
> {code}
> 20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.slf4j.bridge.SLF4JBridgeHandler.removeHandlersForRootLogger(SLF4JBridgeHandler.java:-1)
> 20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.removeJdkLoggingBridgeHandler(Slf4JLoggingSystem.java:78)
> 20:37:01,188 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.configureJdkLoggingBridgeHandler(Slf4JLoggingSystem.java:61)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.Slf4JLoggingSystem.beforeInitialize(Slf4JLoggingSystem.java:41)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.log4j2.Log4J2LoggingSystem.beforeInitialize(Log4J2LoggingSystem.java:136)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:231)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:210)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
> 20:37:01,189 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.SpringApplication.run(SpringApplication.java:292)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:156)
> 20:37:01,190 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:136)
> 20:37:01,191 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.boot.web.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)
> 20:37:01,191 INFO  [stdout] (ServerService Thread Pool -- 79) org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:169)
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list