How and why I built A centralized service for printing logs using Java, SpringBoot, Slf4j
About me
I am a full-stack developer having 6 years of industry experience, i have knowledge in Java, SpringBoot, Angular, PostgreSQL.
The problem I wanted to solve
Whenever a microservice is built and deployed in a production environment, we used to face issue regarding checking logs of which api is getting called or if some issue happens and we wanted to debug it, it is always difficult without knowing the payload or api details.
What is A centralized service for printing logs using Java, SpringBoot, Slf4j?
I have made a centralized logging system which will log the API url, payload passed, http method called and response code the api returned along with the error details every time an api is called. Also the logging system is centralized so that the code is written at only one place and we don't have to write multiple line of code for it.
Tech stack
Java, SpringBoot, Slf4j