To make our code production-ready there a few things to consider, including how to monitor the application’s flow.
Logging is important if you want to diagnose problems or understand what’s happening with your application, as it runs.
Logging is the process of recording information about usage patterns, activities, operations, and output within an operating system, application, server or another device.
These activities are registered in a log file.
We can classify the entries in our log file in terms of urgency. For that, we use logging levels.
Every programming language has at least one logging framework that allows us to store data in different formats.
In Java, we can take a pick between Java’s own logging tools, java.util.logging, or other external frameworks like Logback or the most popular Log4j2.
Log4j2 in a Spring Boot project
Car Rental - Rest API with Logging Integration