Skip to content

Instantly share code, notes, and snippets.

@dapperfu
Created January 5, 2016 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dapperfu/a3d2869679e29f733ac8 to your computer and use it in GitHub Desktop.
Save dapperfu/a3d2869679e29f733ac8 to your computer and use it in GitHub Desktop.
Logging copy paste
## 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