Тёмный

Slf4j, Lockback and Log4J2 | Spring Boot Backend #10 

The Dev World - by Sergio Lema
Подписаться 13 тыс.
Просмотров 14 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@swagatochatterjee7104
@swagatochatterjee7104 Год назад
Its excellent! You are a dev who writes actually Production quality stuff for a tutorial and keep it deep enough. This is fabulous.
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema Год назад
Thank you! I try my best
@snaismamaniastete1780
@snaismamaniastete1780 11 месяцев назад
sorry bro, where did you learn to code with XML? I have no idea how do you know exactly what you gotta do. 🙏🙏🙏
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 11 месяцев назад
Real programmers know to write code in Notepad++ 😂 No, in fact, I've copy/past the content by parts, reading a lot of documentation and trying different things. Finally, for the video, I just copy from my second screen what worked before
@ОлегизАшхабада
@ОлегизАшхабада 9 месяцев назад
Привет из России. Спасибо друг. Как раз сейчас изучаю java и Sprig boot в котором нужно сделать логирование ошибок и событий.
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 9 месяцев назад
Thanks! (hopefully Google translated your message 😅)
@sandyj342
@sandyj342 9 месяцев назад
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!
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 9 месяцев назад
Thank you for this kind feedback Sandy!
@arkan535
@arkan535 5 месяцев назад
Nice tutorial, I was looking for this❤
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 5 месяцев назад
So glad you find it!
@raymondorenda7385
@raymondorenda7385 Год назад
Good Stuff. "It's better to write too many logs than not enough". You can say that again.
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema Год назад
I wish some people listen to me, because when I analyze the logs, that's not the case 😩 Thanks for watching Raymond
@shembrooklyne7552
@shembrooklyne7552 2 года назад
From all the videos, this is the one that makes sense. Thank you sir!
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 2 года назад
Thank you for your interest!
@daredevone
@daredevone 2 года назад
Thanks for the video. I wish I could learn about how to choose a particular appender and use it programmatically. 🙂
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 2 года назад
You have all the available appenders in the documentation of Log4J (logging.apache.org/log4j/2.x/manual/appenders.html) and Logback (logback.qos.ch/manual/appenders.html). Nevertheless, choosing the right one can be difficult as there are more dozens.
@avgSE81
@avgSE81 7 месяцев назад
Can someone tell me what font is that?
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 7 месяцев назад
It's the default one in IntelliJ.
@gerdsfargen6687
@gerdsfargen6687 10 месяцев назад
Merci beaucoup!
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 10 месяцев назад
Avec plaisir
@farhanmaulidan3306
@farhanmaulidan3306 2 года назад
so... how to send the log to email? i used gmail smtp but doesnt work
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 2 года назад
For Logback, you Have the SMTPAppender (logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SMTPAppender.html) and for Log4J you also have the SMTPAppender (logback.qos.ch/apidocs/ch/qos/logback/classic/net/SMTPAppender.html). Those can be configured in the respective configuration files.
@Domzheritcy
@Domzheritcy 2 года назад
Welcome back! And thank you for another useful video
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 2 года назад
Thanks to you to follow me
@yousseflotfi904
@yousseflotfi904 2 года назад
what about application.properties ??
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema 2 года назад
I use the application.yml file, it's just another format but with the same information.
@yousseflotfi904
@yousseflotfi904 2 года назад
@@TheDevWorldbySergioLema I know , can you make video Using app.properties or .yml thank you ❤
@jesper2455
@jesper2455 Год назад
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?
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema Год назад
When I set the log level to a handler, I indicate which is the maximum accepted level. Then, in the filters/packages, I indicate the log level I want (which depends on the maximum allowed by the handlers).
@johnryder7035
@johnryder7035 Год назад
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.
@TheDevWorldbySergioLema
@TheDevWorldbySergioLema Год назад
You can configure Logback in different ways, with the Configuration class or via the XML file, check it here: logback.qos.ch/manual/configuration.html
Далее
Java Spring Boot Logging Tutorial with Demonstration
24:45
ПОЮ ВЖИВУЮ🎙
3:19:12
Просмотров 879 тыс.
Set up Logging with Log4j2 in Java and IntelliJ IDEA
15:21
Mastering Log4j2: Logging in Spring Boot 3
21:13
Просмотров 1,4 тыс.
Spring Boot Rest Client Interceptors
14:00
Просмотров 10 тыс.