Created
November 5, 2012 12:35
-
-
Save tsileo/4016969 to your computer and use it in GitHub Desktop.
Minimal python logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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