June 2019
Beginner to intermediate
770 pages
19h 24m
English
There are the following two configuration details that we need to provide in order to see the output in our logs:
The logging package has a variety of configuration methods. We'll show you logging.basicConfig() here. We'll take a look at logging.config.dictConfig() separately.
The logging.basicConfig() method permits a few parameters to create a single logging.handlers.StreamHandler for logging the output. In many cases, this is all we need:
>>> import logging >>> import sys >>> logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
This ...
Read now
Unlock full access