Python logging tutorial: loggers, handlers, and formatters

Поділитися
Вставка
  • Опубліковано 16 тра 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: ua-cam.com/users/tecladocode?s...
    ✅ Our Discord server: / discord
    ✅ Twitter: / jslvtr
  • Наука та технологія

КОМЕНТАРІ • 27

  • @jonathancastillo5953
    @jonathancastillo5953 Рік тому

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

  • @filovitch4890
    @filovitch4890 Рік тому +4

    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.

  • @dhruvtara6537
    @dhruvtara6537 3 місяці тому

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

  • @collinsonOga
    @collinsonOga 2 місяці тому

    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 UA-cam videos as well. It’s just a bit advanced!

    • @cowabungatv4159
      @cowabungatv4159 Рік тому

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

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

  • @johnysmrz
    @johnysmrz 3 місяці тому

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

  • @fullstackspiderman
    @fullstackspiderman 9 місяців тому

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

  • @mrn3ts210
    @mrn3ts210 2 місяці тому

    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  2 місяці тому +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 2 місяці тому

      @@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 Рік тому

    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.

  • @seekingpeace-ts4ov
    @seekingpeace-ts4ov Рік тому

    where is the code snippets?

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

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