Logging:
Lets suppose some application is deployed on the production server but some API is showing
unexpected behavior. When checked on local environment everything seems fine but showing issues on
production. Here logging comes into picture to track the issues in production environment.
Logging is an essential aspect of application development that allows developers to monitor and
troubleshoot their applications. Spring Boot supports various logging frameworks such as Logback,
Log4j2, and Java Util Logging (JUL)
Logging Levels: Logging levels are labels used to categorize and prioritize system messages based on
their severity and importance. Logging levels help in categorizing log statements based on their severity.
The common logging levels are:
1) Trace
2) Debug
3) Info
4) Warn
5) Error
Note: By default, logging is enabled for INFO, WARN and ERROR.