Modern Python logging
188.4 هزار بار بازدید -
8 ماه پیش
-
A logging tutorial.
At some
A logging tutorial.
At some point, print statements aren't enough. When that time comes in Python, you should reach for the builtin logging package. It may be old (committed in 2002!), but it is the standard in Python. Unfortunately though, it being so old means that it's full of stuff you shouldn't use, it doesn't follow modern conventions like PEP8 coding style, and many tutorials are vastly outdated. If you'd like to understand the modern picture of logging in Python, then this video is for you.
― mCoding with James Murphy (https://mcoding.io/)
Source code: https://github.com/mCodingLLC/VideosSampleCode
logging docs: https://docs.python.org/3/library/logging.html
Make your own diagrams: https://excalidraw.com/
Local Elevator by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
https://patreon.com/mCoding
Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE
Want to donate crypto? Check out the rest of my supported donations on my website!
https://mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, Mark M, Mutual Information, Pi
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: https://discord.gg/Ye9yJtZQuN
Github: https://github.com/mCodingLLC/
Reddit: https://www.reddit.com/r/mCoding/
Facebook: https://www.facebook.com/james.mcoding
CHAPTERS
---------------------------------------------------
https://www.seevid.ir/fa/w/9L77QExPmI0 Intro
https://www.seevid.ir/fa/w/9L77QExPmI0 Self-sponsorship
https://www.seevid.ir/fa/w/9L77QExPmI0 logging is the standard
https://www.seevid.ir/fa/w/9L77QExPmI0 basicConfig
https://www.seevid.ir/fa/w/9L77QExPmI0 dictConfig
https://www.seevid.ir/fa/w/9L77QExPmI0 the complete logging picture
https://www.seevid.ir/fa/w/9L77QExPmI0 Example: log to stdout
https://www.seevid.ir/fa/w/9L77QExPmI0 logging JSON/YAML config
https://www.seevid.ir/fa/w/9L77QExPmI0 Example: errors to stdedd and all to file
https://www.seevid.ir/fa/w/9L77QExPmI0 JSON logs
https://www.seevid.ir/fa/w/9L77QExPmI0 Extra context with the extra param
https://www.seevid.ir/fa/w/9L77QExPmI0 Custom filter
https://www.seevid.ir/fa/w/9L77QExPmI0 A glaring flaw
https://www.seevid.ir/fa/w/9L77QExPmI0 Log off the main thread with QueueHandler
https://www.seevid.ir/fa/w/9L77QExPmI0 Success!
https://www.seevid.ir/fa/w/9L77QExPmI0 Library logging?
https://www.seevid.ir/fa/w/9L77QExPmI0 logging4p
https://www.seevid.ir/fa/w/9L77QExPmI0 Thanks!
8 ماه پیش
در تاریخ 1402/11/03 منتشر شده
است.
188,423
بـار بازدید شده