Python logging tutorial: loggers, handlers, and formatters

Sdílet
Vložit
  • čas přidán 16. 05. 2023
  • 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/page/fastapi-101
    ✅ Subscribe to the channel: czcams.com/users/tecladocode?s...
    ✅ Our Discord server: / discord
    ✅ Twitter: / jslvtr
  • Věda a technologie

Komentáře • 27

  • @collinsonOga
    @collinsonOga Před měsícem

    You're highly underrated man

  • @jonathancastillo5953
    @jonathancastillo5953 Před rokem

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

  • @dhruvtara6537
    @dhruvtara6537 Před 2 měsíci

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

  • @filovitch4890
    @filovitch4890 Před rokem +4

    Really interesting content. Thanks a lot for sharing this!

    • @tecladocode
      @tecladocode  Před rokem

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

  • @cowabungatv4159
    @cowabungatv4159 Před rokem +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  Před rokem +1

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

    • @cowabungatv4159
      @cowabungatv4159 Před rokem

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

  • @johnysmrz
    @johnysmrz Před 3 měsíci

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

  • @fullstackspiderman
    @fullstackspiderman Před 9 měsíci

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

  • @seekingpeace-ts4ov
    @seekingpeace-ts4ov Před rokem

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

  • @davidpetty7014
    @davidpetty7014 Před rokem +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  Před rokem

      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?

  • @mrn3ts210
    @mrn3ts210 Před 2 měsíci

    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  Před 2 měsíci +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 Před 2 měsíci

      @@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! :)

  • @laurapeterson146
    @laurapeterson146 Před 11 měsíci

    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  Před 11 měsíci

      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 Před 11 měsíci

      @@tecladocode Ok, thanks.

    • @laurapeterson146
      @laurapeterson146 Před 11 měsíci

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

  • @seekingpeace-ts4ov
    @seekingpeace-ts4ov Před rokem

    where is the code snippets?

  • @shawnnguyen668
    @shawnnguyen668 Před rokem

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

    • @tecladocode
      @tecladocode  Před rokem +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 Před rokem

      @@tecladocode Thank you for the quick reply!

  • @JorgeEscobarMX
    @JorgeEscobarMX Před rokem

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

    • @tecladocode
      @tecladocode  Před rokem

      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 😁