Created
January 30, 2013 20:41
-
-
Save anteaya/4676747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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