Python logging tutorial: loggers, handlers, and formatters
Вставка
- Опубліковано 9 лют 2025
- 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
Really interesting content. Thanks a lot for sharing this!
Thank you! Glad you liked it! Logging is an important but normally skipped topic.
Jose, good to hear from you. Great content. You're the best.
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
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!
@@tecladocode nice, i'll sign up for the newsletter
My idea with logging is super clear now. Thank you .
Glad it helped!
You're highly underrated man
How do I get the asctime to print using a '.' as a fractional seconds separator. The ',' looks weird.
Aaagh and you stopped at exact moment when it started to be interesting!
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)
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?
How to use logger in oop based projects, and for all projects same logger class?
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..
oh thanks! that 's very good🤩
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?
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.
@@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! :)
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?
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.
@@tecladocode Ok, thanks.
@@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.
where is the code snippets?
Wow, he actually recorded it. This has like half a year in the making?
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 😁
What app do you use to make such beautiful presentation for the code?
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.
@@tecladocode Thank you for the quick reply!