Last active
August 31, 2016 06:57
-
-
Save Kif11/af7dd6d2e7d52f7fd23e9233d6b3228a to your computer and use it in GitHub Desktop.
Simple logger import and config
This file contains hidden or 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(format='%(levelname)s: %(message)s') | |
log = logging.getLogger(__file__) | |
log.setLevel(logging.INFO) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment