Created
April 7, 2015 02:00
-
-
Save ivangonekrazy/f1042ce2414a3186f980 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 | |
# Get the top-level logger object | |
log = logging.getLogger() | |
# make it print to the console. | |
console = logging.StreamHandler() | |
log.addHandler(console) | |
# emit a warning to the puny Humans | |
log.warn('Citizens of Earth, be warned!') | |
## Citizens of Earth, be warned! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment