Skip to content

Instantly share code, notes, and snippets.

@mduheaume
Created June 6, 2013 22:04
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 mduheaume/5725361 to your computer and use it in GitHub Desktop.
Save mduheaume/5725361 to your computer and use it in GitHub Desktop.
logger = logging.getLogger()
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.DEBUG)
stream_handler.setFormatter(logging.Formatter('%(asctime)s - %(message)s'))
logger.addHandler(stream_handler)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment