Modern Python logging
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/VideosS... logging docs: https://docs.python.org/3/library/log... 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/... SUPPORT ME ⭐ --------------------------------------------------- Sign up on Patreon to get your donor role and early access to videos! / mcoding Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.) https://www.paypal.com/donate/?hosted... 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: / discord Github: https://github.com/mCodingLLC/ Reddit: / mcoding Facebook: / james.mcoding CHAPTERS --------------------------------------------------- 0:00 Intro 0:34 Self-sponsorship 0:48 logging is the standard 1:21 basicConfig 2:08 dictConfig 2:44 the complete logging picture 7:51 Example: log to stdout 9:37 logging JSON/YAML config 10:44 Example: errors to stdedd and all to file 12:37 JSON logs 15:46 Extra context with the extra param 16:13 Custom filter 17:10 A glaring flaw 17:44 Log off the main thread with QueueHandler 19:15 Success! 19:26 Library logging? 20:16 logging4p 21:02 Thanks!

Python Logging Demystified: Part 1 - Concepts

Python Generators

Python Tutorial: AsyncIO - Complete Guide to Asynchronous Programming with Animations

Python Decorators - Visually Explained

Async for loops in Python

Automated Testing in Python with pytest, tox, and GitHub Actions

Python Tutorial: Logging Basics - Logging to Files, Setting Levels, and Formatting

Unlocking your CPU cores in Python (multiprocessing)

5 Tips To Write Better Python Functions

Docker Tutorial for Beginners

Python Tutorial: Logging Advanced - Loggers, Handlers, and Formatters

10 Python Tips That Separate Juniors From Seniors

5 Useful Dunder Methods In Python

How To Write Unit Tests For Existing Python Code // Part 1 of 2

Transform your data science Jupyter notebook to production-ready using Copilot

Learn Pandas in 30 Minutes - Python Pandas Tutorial

Python Logging: Master the Module in Under 10 Minutes

Intro to async Python | Writing a Web Crawler

Stop Overusing Classes in Python

