Python logging tutorial: loggers, handlers, and formatters

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Heard that logging is good, but you don't know how to get started? In this Python logging tutorial, let me help you get started by learning about loggers, handlers, and formatters!
    -- Links --
    🐍 Our upcoming FastAPI course: teclado.com/pa...
    ✅ Subscribe to the channel: www.youtube.co...
    ✅ Our Discord server: / discord
    ✅ Twitter: / jslvtr

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

  • @filovitch4890
    @filovitch4890 Год назад +5

    Really interesting content. Thanks a lot for sharing this!

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

      Thank you! Glad you liked it! Logging is an important but normally skipped topic.

  • @collinsonOga
    @collinsonOga 4 месяца назад

    You're highly underrated man

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

    great video, hoping that there will be a part 2 with advanced practices for example filtering log messages or setting up multiple loggers, for example user logs vs dev logs

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

      We cover both of those in the course! But I’ll take it into account for future RUclips videos as well. It’s just a bit advanced!

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

      @@tecladocode nice, i'll sign up for the newsletter

  • @fullstackspiderman
    @fullstackspiderman 11 месяцев назад

    Nowadays, especially in microservices/containerization era, we don't log to a file instead log to console in ecs standard format and cofigure ELK to read them. One of the advantages is you dont need storage..

  • @davidpetty7014
    @davidpetty7014 Год назад +2

    Very good. Would be interested in the dunder video. Could you post the code for the logger module to be used for inheritance ?
    Thanks Jose (PS: I'm back after a long breadk)

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

      Will post it next week! Follow the channel if you haven’t already to see when it drops 👍 what do you mean by the code for the logger module?

  • @seekingpeace-ts4ov
    @seekingpeace-ts4ov Год назад

    How to use logger in oop based projects, and for all projects same logger class?

  • @mrn3ts210
    @mrn3ts210 4 месяца назад

    Hello, Jose I know this isn't related to this topic but I always wondered how you type so fast when you are programming I mean by using Operators, Delimiters, and Special Symbols do you touch type?

    • @tecladocode
      @tecladocode  4 месяца назад +1

      Hey! I do touch type. A lot of practice and some lessons (on a typewriter!) when I was a kid.
      That said typing fast isn't very important. Most of the time is spent thinking, and nowadays with AI-assisted coding, typing will be even less important.

    • @mrn3ts210
      @mrn3ts210 4 месяца назад

      @@tecladocode Thanks for the response Jose! I am truly grateful. I will keep practicing but making sure not to stress too much about it, and I have been making progress.
      I am a 14 year old currently taking the course "The Complete Python Course Learn Python by Doing"
      I am astonished by your work and I am looking forward to you! :)

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

    What app do you use to make such beautiful presentation for the code?

    • @tecladocode
      @tecladocode  Год назад +3

      Hey Shawn, I used Apple’s Keynote app. It’s just the built in presentation app in MacOS. The coding screenshots are generated with snappify.

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

      @@tecladocode Thank you for the quick reply!

  • @مرتضی_افروزه
    @مرتضی_افروزه Месяц назад

    oh thanks! that 's very good🤩

  • @johnysmrz
    @johnysmrz 5 месяцев назад

    Aaagh and you stopped at exact moment when it started to be interesting!

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

    Jose, good to hear from you. Great content. You're the best.

  • @seekingpeace-ts4ov
    @seekingpeace-ts4ov Год назад

    where is the code snippets?

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

    Wow, he actually recorded it. This has like half a year in the making?

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

      Making a course takes us between 6-9 months! The FastAPI course has been a while in the making! We’ve almost finished recording it all 😁

  • @dhruvtara6537
    @dhruvtara6537 5 месяцев назад

    My idea with logging is super clear now. Thank you .

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

    Hi, I see in the past you had a course named "Advanced REST APIs with Flask and Python".
    Why did you remove that course from Udemy though?

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

      Hi! We removed the course because it was quite outdated, and we don't have the time to update it right now. Some of the features of that course are now in our "REST APIs with Flask and Python" course.

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

      @@tecladocode Ok, thanks.

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

      @@tecladocode Also, I have a suggestion for your future courses: please just use the standard (built-in) color theme of VSCode. My eyes somehow got worse after watching 2 sections of your REST APIs course :( The color is a dull-dark combination that is really not pleasing.
      1080p helps, but 2 things are important: a bit bigger font size (or zoom level) and, more importantly, color theme. You can use whatever theme you want - as I said, the standard one is ok.