Python increase debugging level

By default, python will only display warnings, errors, and critical messages. Change the debugging level to display all logging messages.

Change the logging level threshold by using setLevel().

import logging


logging.debug('debug message')'info message')
logging.warning('warning message')
logging.error('error message')
logging.critical('critical message')
View this page on GitHub.
Posted .


Leave a Reply