Python Logging Demystified: Part 2 - Coding

Published: 28 August 2024
on channel: MathByte Academy
7,840
209

#mathbyteacademy #python

In this second part on Python logging, we implement the concepts covered in Part 1 and see how to use the logging library in practice through a series of 12 examples.

If you have not watched Part 1, and are not entirely familiar with the concepts behind the Python logging library, I encourage you to watch it first:    • Python Logging Demystified: Part 1 - Concepts  

Content
=======
00:00 - Introduction
00:55 - Overview of Examples covered in this video
02:48 - Example 1 - Root logger, Inspecting Loggers
05:30 - Example 2 - Main app logger with YAML config
17:43 - Example 3 - Main app logger with code config
22:18 - Example 2 - Revisiting for log levels and propagation
25:52 - Example 4 - Simple file handlers
31:42 - Example 5 - Rotating file handlers
35:35 - Example 6 - Using multiple handlers
41:59 - Example 7 - Customizing the string formatter
46:22 - Example 8 - Using the extra parameter
49:22 - Example 9 - Creating custom filters
59:44 - Example 10 - Creating custom formatters
1:08:55 - Example 11 - Suppressing logging exceptions
1:13:40 - Example 12 - Using multiple loggers
1:24:02 - Conclusion and question for you


Code for this Video
================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/2nwwmk2c

My Python Courses
=================

Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

Pydantic V2: Essentials
https://www.udemy.com/course/pydantic...

Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...


On this page of the site you can watch the video online Python Logging Demystified: Part 2 - Coding with a duration of hours minute second in good quality, which was uploaded by the user MathByte Academy 28 August 2024, share the link with friends and acquaintances, this video has already been watched 7,840 times on youtube and it was liked by 209 viewers. Enjoy your viewing!