Skip to content

Instantly share code, notes, and snippets.

@catroll
Created June 5, 2018 06:49
Show Gist options
  • Select an option

  • Save catroll/b558823ad78962f9a58c4768987d27f2 to your computer and use it in GitHub Desktop.

Select an option

Save catroll/b558823ad78962f9a58c4768987d27f2 to your computer and use it in GitHub Desktop.
Python Debug
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s [%(levelname)s] %(message)s, %(module)s:%(lineno)d',
datefmt='%Y/%m/%d %H:%M:%S')
LOG = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment