Class ConditionEvaluationReportLoggingListener
java.lang.Object
org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener
- All Implemented Interfaces:
ApplicationContextInitializer<ConfigurableApplicationContext>
public class ConditionEvaluationReportLoggingListener
extends Object
implements ApplicationContextInitializer<ConfigurableApplicationContext>
ApplicationContextInitializer
that writes the ConditionEvaluationReport
to the log. Reports are logged at the DEBUG
level. A crash
report triggers an info output suggesting the user runs again with debug enabled to
display the report.
This initializer is not intended to be shared across multiple application context instances.
- Since:
- 2.0.0
- Author:
- Greg Turnquist, Dave Syer, Phillip Webb, Andy Wilkinson, Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(ConfigurableApplicationContext applicationContext) void
logAutoConfigurationReport
(boolean isCrashReport) protected void
-
Constructor Details
-
ConditionEvaluationReportLoggingListener
public ConditionEvaluationReportLoggingListener() -
ConditionEvaluationReportLoggingListener
-
-
Method Details
-
getLogLevelForReport
-
initialize
- Specified by:
initialize
in interfaceApplicationContextInitializer<ConfigurableApplicationContext>
-
onApplicationEvent
-
logAutoConfigurationReport
public void logAutoConfigurationReport(boolean isCrashReport)
-