How it works...

In this recipe, we created our own logging class. While Python ships with a Logging module, it is very easy to create our own, which gives us absolute control over our logging format. This is very useful when we combine our own logging output with MS Excel or the Matplotlib we explored in the recipes of a previous chapter.

In the next recipe, we will use Python's built-in __main__ functionality to use the four different logging levels we just created.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.17.137