Skip to content

Instantly share code, notes, and snippets.

@artschwagerb
Last active July 20, 2016 18:35
Show Gist options
  • Save artschwagerb/ff91ac457ce82297dcb6524b3c27c4f2 to your computer and use it in GitHub Desktop.
Save artschwagerb/ff91ac457ce82297dcb6524b3c27c4f2 to your computer and use it in GitHub Desktop.
Python Logging
import logging
# Standard instance of a logger with __name__
logger = logging.getLogger(__name__)
# choose your own adventure
logger.info('message goes here')
logger.debug('message goes here')
logger.warning('message goes here')
logger.exception('message goes here')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment