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!
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.
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
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.
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?
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).
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.
Its excellent! You are a dev who writes actually Production quality stuff for a tutorial and keep it deep enough. This is fabulous.
Thank you! I try my best
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!
Thank you for this kind feedback Sandy!
From all the videos, this is the one that makes sense. Thank you sir!
Thank you for your interest!
Good Stuff. "It's better to write too many logs than not enough". You can say that again.
I wish some people listen to me, because when I analyze the logs, that's not the case 😩
Thanks for watching Raymond
Nice tutorial, I was looking for this❤
So glad you find it!
Thanks for the video. I wish I could learn about how to choose a particular appender and use it programmatically. 🙂
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.
Welcome back! And thank you for another useful video
Thanks to you to follow me
Merci beaucoup!
Avec plaisir
Привет из России. Спасибо друг. Как раз сейчас изучаю java и Sprig boot в котором нужно сделать логирование ошибок и событий.
Thanks!
(hopefully Google translated your message 😅)
sorry bro, where did you learn to code with XML? I have no idea how do you know exactly what you gotta do. 🙏🙏🙏
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
so... how to send the log to email? i used gmail smtp but doesnt work
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.
Can someone tell me what font is that?
It's the default one in IntelliJ.
what about application.properties ??
I use the application.yml file, it's just another format but with the same information.
@@TheDevWorldbySergioLema
I know , can you make video Using app.properties or .yml
thank you ❤
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?
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).
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.
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