Created
January 5, 2016 17:05
-
-
Save dapperfu/a3d2869679e29f733ac8 to your computer and use it in GitHub Desktop.
Logging copy paste
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
## Setup Logging. | |
# Import logging | |
import logging | |
# Get generic logger | |
logger=logging.getLogger() | |
# Set logging level to debug for now. | |
logger.setLevel(logging.DEBUG) | |
# Assign aliases to use instead of print() | |
debug=logger.debug | |
info =logger.info | |
error=logger.error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment