Skip to content

Instantly share code, notes, and snippets.

Last active January 14, 2023 18:09
What would you like to do?
Python basic logging boilerplate for console log
import logging
log = logging.getLogger()
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter('%(levelname)s: %(message)s'))
log.setLevel(logging.INFO)'Hello World!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment