Skip to content

Commit

Permalink
Deprecate classpath logging listener and stop registering by default
Browse files Browse the repository at this point in the history
Closes gh-23138
  • Loading branch information
wilkinsona committed Nov 3, 2020
1 parent 73c4442 commit 4c777c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -26,7 +26,6 @@
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.context.config.AnsiOutputApplicationListener;
import org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor;
import org.springframework.boot.context.logging.ClasspathLoggingApplicationListener;
import org.springframework.boot.context.logging.LoggingApplicationListener;
import org.springframework.boot.devtools.remote.client.RemoteClientConfiguration;
import org.springframework.boot.devtools.restart.RestartInitializer;
Expand Down Expand Up @@ -75,7 +74,6 @@ private Collection<ApplicationListener<?>> getListeners() {
listeners.add(new AnsiOutputApplicationListener());
listeners.add(new EnvironmentPostProcessorApplicationListener(
EnvironmentPostProcessorsFactory.of(ConfigDataEnvironmentPostProcessor.class)));
listeners.add(new ClasspathLoggingApplicationListener());
listeners.add(new LoggingApplicationListener());
listeners.add(new RemoteUrlPropertyExtractor());
return listeners;
Expand Down
Expand Up @@ -24,6 +24,7 @@

import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.boot.diagnostics.FailureAnalysis;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.GenericApplicationListener;
import org.springframework.context.event.SmartApplicationListener;
Expand All @@ -37,7 +38,10 @@
*
* @author Andy Wilkinson
* @since 2.0.0
* @deprecated since 2.4.0 with no direct replacement. {@link FailureAnalysis} is now the
* preferred approach for diagnosing and reporting startup failures.
*/
@Deprecated
public final class ClasspathLoggingApplicationListener implements GenericApplicationListener {

private static final int ORDER = LoggingApplicationListener.DEFAULT_ORDER + 1;
Expand Down
Expand Up @@ -42,7 +42,6 @@ org.springframework.boot.builder.ParentContextCloserApplicationListener,\
org.springframework.boot.context.FileEncodingApplicationListener,\
org.springframework.boot.context.config.AnsiOutputApplicationListener,\
org.springframework.boot.context.config.DelegatingApplicationListener,\
org.springframework.boot.context.logging.ClasspathLoggingApplicationListener,\
org.springframework.boot.context.logging.LoggingApplicationListener,\
org.springframework.boot.env.EnvironmentPostProcessorApplicationListener,\
org.springframework.boot.liquibase.LiquibaseServiceLocatorApplicationListener
Expand Down

0 comments on commit 4c777c6

Please sign in to comment.