
Why do we need logging module, what issues it solves, and why it's important to use for your production ready projects.
The Logging module is quite tricky and non-obvious, making it essential to understand the design of loggers right from the start.
How logger messages are processed, and what is propagation. Also we'll look at basic loggers configuration.
Python Logging module uses the printf interpolation notation by default. But why? What's the reason behind it?
How to log exceptions. Using of the exc_info parameter or .exception() method.
Why to use filters, and how to write custom logging filters.
How to write custom logging handlers. Also we will write a basic Telegram bot that will get log messages from your project. Actually it's very handy.
It's a more practical example of using logging module in a program that makes a request to API and gets a random joke about Chuck Norris.
This course is designed to simplify the understanding of the Python Logging module, which is a powerful yet often misunderstood tool in the Python ecosystem.
The Logging module plays a crucial role in building robust and reliable software. It allows developers to capture and manage log messages, providing valuable insights into the behavior and performance of their applications. However, due to its complexity, many beginners find it challenging to grasp its full potential. This course aims to bridge that gap by providing a step-by-step approach to mastering the Logging module.
One of the key focuses of this course is to explore the practical applications of the Logging module. You will learn how to leverage its features to build a monitoring system for your projects. By integrating the Logging module with email or Telegram Bot, you will be able to receive notifications about errors and other significant events occurring within your project.
In addition to covering the fundamental concepts, this course delves into the design of Python Loggers and the hierarchy of loggers. You will gain a deep understanding of how log messages are processed and learn various techniques to configure Python loggers effectively. Furthermore, you will explore the benefits of using the %s or printf string formatting style for log messages, enabling you to customize the output and enhance readability.
The course also covers logging of exceptions, an essential aspect of error handling. You will learn how to effectively log exceptions to capture critical information for debugging and troubleshooting. Additionally, you will discover the power of logging filters and how to create custom filters to fine-tune the logging behavior according to your project's requirements.
To expand your skills further, this course guides you through the process of creating a custom logging handler. You will gain hands-on experience in building a Telegram bot that can fetch log messages from your projects, enabling you to monitor them in real-time.
By the end of this course, you will have a strong command of the Python Logging module and its advanced features. You will be equipped with the knowledge and skills to implement a robust logging strategy in your projects, ensuring better error management, easier debugging, and improved overall software quality.
Enroll now and unlock the full potential of the Python Logging module. Start your journey towards building more reliable and maintainable Python applications.
Topics
Why we need to use Logging tools in our projects
Design of Python Loggers
Hierarchy of Python loggers
How logs messages are processed
How to configure Python loggers
Why to use %s or so called printf strings formatting style
Logging of exception
Why to use logging filters, and create a custom filter
How to create a custom logging Handler
How to create a Telegram bot to get messages from our projects