Class ConditionEvaluationReportLoggingListener
- java.lang.Object
- org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener
- All Implemented Interfaces:
org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
public class ConditionEvaluationReportLoggingListener extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
ApplicationContextInitializer
that writes theConditionEvaluationReport
to the log. Reports are logged at theDEBUG
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.
Constructor Summary
Constructors Constructor Description ConditionEvaluationReportLoggingListener()
ConditionEvaluationReportLoggingListener(org.springframework.boot.logging.LogLevel logLevelForReport)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.logging.LogLevel
getLogLevelForReport()
void
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
void
logAutoConfigurationReport(boolean isCrashReport)
protected void
onApplicationEvent(org.springframework.context.ApplicationEvent event)
Constructor Detail
ConditionEvaluationReportLoggingListener
public ConditionEvaluationReportLoggingListener()
ConditionEvaluationReportLoggingListener
public ConditionEvaluationReportLoggingListener(org.springframework.boot.logging.LogLevel logLevelForReport)
Method Detail
getLogLevelForReport
public org.springframework.boot.logging.LogLevel getLogLevelForReport()
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
- Specified by:
initialize
in interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
onApplicationEvent
protected void onApplicationEvent(org.springframework.context.ApplicationEvent event)
logAutoConfigurationReport
public void logAutoConfigurationReport(boolean isCrashReport)