From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Logging

Logging

- [Instructor] Logging. Logging, as you all may know at this point, is an essential tool for debugging, monitoring, and troubleshooting your Spring MVC applications. Spring MVC provides a flexible logging framework that integrates with popular logging libraries if you so choose to use them, like Log4j, Logback, and java.util logging. Rest assured at the beginning of this course when you did that sample Spring MVC web application, you saw an example of logging like we see here on the screen. Let's take it the next level. Let's look at logging levels. Spring MVC supports the following logging levels. So first you have TRACE. This is the most detailed level, capturing every step of the application's execution. Then you have DEBUG. This provides detailed information about the application's behavior. And then you have INFO. This logs informational messages such as successful requests or component initialization. And then you have WARN. This logs warning about potential issues or unexpected…

Contents