If you're learning Spring Boot and you need 1:1 coaching, you can book me using the info on my channel page.
In this video we are going to take at logging in Spring Boot. We are going to discuss the 2 options we have for logging libraries at the time of recording this video (early 2022) as well as the facade library SLF4J. We are going to showcase a basic usage of SLF4J then write an XML configuration file for Logback. After that, we are going to switch our project to Log4J2 then write an XML configuration file for Log4J2.
Link to source code:
https://vladsave.com/?p=223
My business website, you can hire me there
https://vladsave.com
Chapters:
00:00 Introduction
00:43 Overview of logging libraries
04:10 Creating the Spring Boot project
05:50 Basic logging usage
08:29 Formatting in loggers
10:19 Configure the logger levels in application.properties
11:49 Logback configuration file
15:59 Switch the project to Log4J2 and reconfigure