Skip to content

Instantly share code, notes, and snippets.

@Menziess
Created September 4, 2019 11:27
Show Gist options
  • Save Menziess/2564eef94b5285e61ba5c6294f428bc1 to your computer and use it in GitHub Desktop.
Save Menziess/2564eef94b5285e61ba5c6294f428bc1 to your computer and use it in GitHub Desktop.
Setting basic config for logging.
# Specify format for logging
format = '%(asctime)s - %(message)s'
# Set logging config
logging.basicConfig(stream=sys.stdout,
level=logging.INFO,
format=format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment