Python Logging Demystified: Part 2 - Coding

preview_player
Показать описание
#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.

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
================

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

- Python 3 Fundamentals (introduction to Python)

- Pydantic V2: Essentials

- Python 3 Deep Dive (Part 1 - Functional)

- Python 3 Deep Dive (Part 2 - Iteration, Generators)

- Python 3 Deep Dive (Part 3 - Hash Maps)

- Python 3 Deep Dive (Part 4 - OOP)
Рекомендации по теме
Комментарии
Автор

Best teacher ever. Please more video about standard library, about static duck typing etc

saadafzal
Автор

I’ve learned so much from your videos, especially the advanced course on Udemy. I feel much more comfortable using Python now! I have a question and a suggestion: could you make some videos on unit testing and integration testing? It’s a big topic in Python, and having someone like you explain it would make it much simpler and more comprehensive.

mohammedouaziz
Автор

Fantastic as always - FastAPI, Polars, Actor based programming, Microservices with Python would be my requests

ketanpurohit
Автор

Thanks Fred! Great video! If you have time, a video on structlog would be much appreciated!

tiffanytai
Автор

Hello Fred, like the first part, this video about logging is crystal clear. Again I thank you a lot to help me to get some code cleaner. By the way, I thank you also to make a focus on the security. I think that in plenty of videos this aspect is ignored. My best regards

LeTotorDuCoin
Автор

Do you have any plans to make a Python course for people new to creating Rest API’s with Fast API?

Maybe even one for GraphQL?

JimRohn-uc
Автор

Awesome! It would be great to have more content or even a course covering web development. Any plan on that?

tserewara
Автор

Thanks Fred. I have completed your 4 parts on DD in Python on Udemy. It's truly amazing. I have a good hold on Data Structures and Algorithms and I now want to start learning the foundations for API development and followed by Distributed Systems. Could you tell me the best resources available I can use?

sarthakchecker
Автор

Love your courses! Any plans on adding courses onto Udemy relating to Python's AI stack, namely, NumPy, Pandas, Matplotlib, and PyTorch? I would definitely enrol if you make them, since your lectures delve deep into the internals of the features. Not many instructors do that!

tirthasg