Is it possible to disable LoggingFailureAnalysisReporter during spring boot failure?



Is it possible to disable LoggingFailureAnalysisReporter execution during spring boot failure?
I made a custom FailureAnalysisReporter and I don’t want to report twice.

Answer

I just found a way to archive what i want, simply adding: <logger name="org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter" level="OFF" /> to my logback configuration will disable any logging from this class, which is essencialy the only thing LoggingFailureAnalysisReporter do.



Source: stackoverflow