diff --git a/spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/logback.xml b/spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/logback.xml index fac5ad3d68..ef753364ed 100644 --- a/spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/logback.xml +++ b/spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/logback.xml @@ -1,19 +1,8 @@ - - - - - - ${CONSOLE_LOG_PATTERN} - - - - - - + - + diff --git a/spring-boot/src/main/java/org/springframework/boot/context/listener/LoggingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/context/listener/LoggingApplicationListener.java index 7a5b73bc1c..4c5ce0e92f 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/listener/LoggingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/listener/LoggingApplicationListener.java @@ -26,7 +26,6 @@ import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.boot.SpringApplication; -import org.springframework.boot.SpringApplicationBeforeRefreshEvent; import org.springframework.boot.SpringApplicationEnvironmentAvailableEvent; import org.springframework.boot.SpringApplicationStartEvent; import org.springframework.boot.logging.LogLevel; @@ -97,7 +96,7 @@ public class LoggingApplicationListener implements SmartApplicationListener { private static Collection> EVENT_TYPES = Arrays .> asList( SpringApplicationStartEvent.class, - SpringApplicationBeforeRefreshEvent.class); + SpringApplicationEnvironmentAvailableEvent.class); private final Log logger = LogFactory.getLog(getClass());