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 ()
Source code:
logging docs:
Make your own diagrams:
Local Elevator by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license.
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Pat