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')
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment