Slf4j, Lockback and Log4J2 | Spring Boot Backend #10

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025

Комментарии •

  • @swagatochatterjee7104
    @swagatochatterjee7104 Год назад +4

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

  • @sandyj342
    @sandyj342 Год назад +1

    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!

  • @shembrooklyne7552
    @shembrooklyne7552 2 года назад +2

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

  • @raymondorenda7385
    @raymondorenda7385 Год назад +1

    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

  • @Domzheritcy
    @Domzheritcy 3 года назад

    Welcome back! And thank you for another useful video

  • @arkan535
    @arkan535 10 месяцев назад

    Nice tutorial, I was looking for this❤

  • @daredevone
    @daredevone 2 года назад +1

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

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  2 года назад +1

      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.

  • @gerdsfargen6687
    @gerdsfargen6687 Год назад

    Merci beaucoup!

  • @ОлегизАшхабада
    @ОлегизАшхабада Год назад

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

  • @snaismamaniastete1780
    @snaismamaniastete1780 Год назад

    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  Год назад

      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

  • @avgSE81
    @avgSE81 Год назад

    Can someone tell me what font is that?

  • @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.

  • @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 2 года назад

    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  2 года назад

      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