Created
June 22, 2019 12:29
-
-
Save rezamt/2848dda2e20959e14e73f02d154ccfdc to your computer and use it in GitHub Desktop.
Python Helper Notes
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
# 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