Logging in Python

Logging in Python
Logging in Python
English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 0h 26m | 89 MB

Logging is a very useful tool in a programmer’s toolbox. It can help you develop a better understanding of the flow of a program and discover scenarios that you might not even have thought of while developing.

Logs provide developers with an extra set of eyes that are constantly looking at the flow that an application is going through. They can store information, like which user or IP accessed the application. If an error occurs, then they can provide more insights than a stack trace by telling you what the state of the program was before it arrived at the line of code where the error occurred.

By logging useful data from the right places, you can not only debug errors easily but also use the data to analyze the performance of the application to plan for scaling or look at usage patterns to plan for marketing.

Python provides a logging system as a part of its standard library, so you can quickly add logging to your application. In this course, you’ll learn why using this module is the best way to add logging to your application as well as how to get started quickly, and you will get an introduction to some of the advanced features available.

Table of Contents

1 Introduction
2 The Logging Module
3 Basic Configurations
4 Formatting the Output
5 Logging Variable Data
6 Capturing Stack Traces
7 Classes and Functions
8 Creating a Custom Logger
9 Logger from Config File
10 Logger from Dictionary
11 Conclusion