Skip to content

Instantly share code, notes, and snippets.

@rezamt
Created June 22, 2019 12:29
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 rezamt/2848dda2e20959e14e73f02d154ccfdc to your computer and use it in GitHub Desktop.
Save rezamt/2848dda2e20959e14e73f02d154ccfdc to your computer and use it in GitHub Desktop.
Python Helper Notes
# replace all print with logging module
import logging
logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(asctime)s: %(message)s')
logging.info('Sample logging')
logging.error('Sample logging')
logging.critical('Sample logging')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment