Debugging

Using the Logging Module

import logging
logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s- %(message)s')

Log Levels

  • debug(lowest)
  • info
  • warning
  • error
  • critical(highest)