From e6588dbf70d0dceeffe9d70b42d441e7c32c6303 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 27 Nov 2015 15:53:40 +0100 Subject: [PATCH] Make LOGGING_SYSTEM_BEAN_NAME public Since the `LoggingSystem` may be retrieved very early during the context initialization, we should do a lookup by name even if only one instance of that bean is ultimately expected in the context. The constant defining the bean name is now public to ease that use case. Closes gh-4584 --- .../boot/logging/LoggingApplicationListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java index cd07b5a6450..de48703a958 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/LoggingApplicationListener.java @@ -112,7 +112,7 @@ public class LoggingApplicationListener implements GenericApplicationListener { /** * The name of the {@link LoggingSystem} bean. */ - private static final String LOGGING_SYSTEM_BEAN_NAME = "springBootLoggingSystem"; + public static final String LOGGING_SYSTEM_BEAN_NAME = "springBootLoggingSystem"; private static MultiValueMap LOG_LEVEL_LOGGERS;