Skip to content

Instantly share code, notes, and snippets.

@anteaya
Created January 30, 2013 20:41
Show Gist options
  • Save anteaya/4676747 to your computer and use it in GitHub Desktop.
Save anteaya/4676747 to your computer and use it in GitHub Desktop.
import logging
logging.basicConfig(level=logging.DEBUG)
LOG = logging.getLogger(__name__)
def foo():
LOG.critical("foo was called")
LOG.debug("this message output from debug")
LOG.warning("this is a warning message")
LOG.info("this is some information, hope it is helpful")
LOG.error("this is an error")
print "Hello World!"
foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment