Skip to content

Instantly share code, notes, and snippets.

@austinkeeley
Last active June 11, 2019 11:22
Show Gist options
  • Save austinkeeley/e583bf3c54abc8182f5db14b539af0a4 to your computer and use it in GitHub Desktop.
Save austinkeeley/e583bf3c54abc8182f5db14b539af0a4 to your computer and use it in GitHub Desktop.
basic logging in python
import logging
logging.basicConfig(level=logging.INFO, format='[%(asctime)s %(levelname)s] %(message)s', datefmt='%Y %b %d %H:%M:%S')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment