Spring Boot API

Custom API Request & Response Logging in spring boot.

Custom API Request & Response Logging in spring boot.

Ashish Lahoti

When we create RESTFul APIs in spring boot application in microservices environment. It becomes essential to log incoming API request and response and push it to centralized logging system such as Splunk or ELK for debugging. Also all the logs related to one request should have some common id to relate them. In this post we are going to solve these problems.