I am using Spring boot Actuator API for my project the having a health check endpoint, and enabled it by : Mentioned here Now I want to enable log in my application log file when ever the status of this above /healthcheck fails and print the entire response from this end point. What is the correct way to achieve this?