Slf4j, Lockback and Log4J2 | Spring Boot Backend #10

preview_player
Показать описание
In this video I show how to write logs in a Spring Boot application. I also show how to configure the Logback and Log4J2 loggers.

Content:
* how to use the Slf4j interface;
* how to configure Logback from a configuration file;
* how to configure Log4J2 from a configuration file;
* what are the differences between Logback and Log4J2.

My Desktop:
• Laptop: Macbook Pro 16' 2019
Рекомендации по теме
Комментарии
Автор

Its excellent! You are a dev who writes actually Production quality stuff for a tutorial and keep it deep enough. This is fabulous.

swagatochatterjee
Автор

Most videos skip steps which creates a lot of gaps in understanding. Sergio, presents in one of the best ways that is quite clear but comprehensive at the same time. Keep up the great work!

sandyj
Автор

From all the videos, this is the one that makes sense. Thank you sir!

shembrooklyne
Автор

Welcome back! And thank you for another useful video

Domzheritcy
Автор

Nice tutorial, I was looking for this❤

arkan
Автор

Good Stuff. "It's better to write too many logs than not enough". You can say that again.

raymondorenda
Автор

Thanks for the video. I wish I could learn about how to choose a particular appender and use it programmatically. 🙂

daredevone
Автор

Привет из России. Спасибо друг. Как раз сейчас изучаю java и Sprig boot в котором нужно сделать логирование ошибок и событий.

vtzrixf
Автор

so... how to send the log to email? i used gmail smtp but doesnt work

farhanmaulidan
Автор

sorry bro, where did you learn to code with XML? I have no idea how do you know exactly what you gotta do. 🙏🙏🙏

snaismamaniastete
Автор

Can someone tell me what font is that?

avgSE
Автор

Hi, This video is very useful, do we still have to use logback.xml file or is there any alternative to handle it via java code itself? thank you for the videos very informative channel. Thanks again.

johnryder
Автор

I didn't understand why you needed both root level INFO for File and Console as well as com.sergio.socialnetwork at DEBUG level. Can you explain in detail the benefit?

jesper