We often pay very less attention on the implementation of logging during the development phase of an application. On the other hand, it becomes mandatory when we deploy the application in production. Sometimes we just insert 'System.out.println' statements as a shortest path, which is a bad practice in the production level applications. Logging serves as a crucial tool for developers providing insights into the inner workings of an application. It also assists in diagnosing issues, and helping in the overall monitoring and maintenance of the software. In this article, we will learn logger in Spring Boot and related concepts with extensive amount of examples. What is a Log? In software development, "log" represents a report containing the history of events, activities, or messages
Tag: logging in spring boot
How to Implement Distributed Logging Tracing using Sleuth Zipkin
In Microservices Architecture based Applications, there are multiple services which interact with each other. In order to serve a client request, one request may involve multiple microservices call to get the response. If any exception occurs or any latency issue appears during such calls, then how will we identify the root cause of the issue? Of course, we will make use of Spring Cloud Sleuth & Zipkin to support distributed logging & Tracing. Therefore, we are going to learn about 'How to implement Distributed Logging Tracing using Sleuth Zipkin' and related concepts accordingly. If we are working on a Standard application, we can implement logging by adding one log file to identify any exception or other issues like response timings or