Skip to content
Advertisement

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.

Advertisement

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.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement