Example usage for org.springframework.boot.diagnostics FailureAnalysisReporter report

List of usage examples for org.springframework.boot.diagnostics FailureAnalysisReporter report

Introduction

In this page you can find the example usage for org.springframework.boot.diagnostics FailureAnalysisReporter report.

Prototype

void report(FailureAnalysis analysis);

Source Link

Document

Reports the given failureAnalysis to the user.

Usage

From source file:org.springframework.boot.diagnostics.FailureAnalyzers.java

private boolean report(FailureAnalysis analysis, ClassLoader classLoader) {
    List<FailureAnalysisReporter> reporters = SpringFactoriesLoader.loadFactories(FailureAnalysisReporter.class,
            classLoader);//from ww  w. java2 s. c o  m
    if (analysis == null || reporters.isEmpty()) {
        return false;
    }
    for (FailureAnalysisReporter reporter : reporters) {
        reporter.report(analysis);
    }
    return true;
}