Skip to content

Instantly share code, notes, and snippets.

@tsileo
Created November 5, 2012 12:35
Show Gist options
  • Save tsileo/4016969 to your computer and use it in GitHub Desktop.
Save tsileo/4016969 to your computer and use it in GitHub Desktop.
Minimal python logger
>>> import logging
>>> logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s: %(message)s')
>>> logging.info("Hello")
2012-11-05 13:34:28,445 INFO: Hello
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment