Created
April 7, 2015 02:04
-
-
Save ivangonekrazy/11431d6a0b0b384b6ac1 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 | |
log = logging.getLogger() | |
# Set a severity threshold to one above WARN | |
log.setLevel(logging.ERROR) | |
# This WARNING will not reach the Humans. | |
log.warn('Citizens of Earth, be warned!') | |
# This CRITICAL message, however, will not be ignored. | |
log.critical('Citizens of Earth, your planet will be removed NOW!') | |
## Citizens of Earth, your planet will be removed NOW! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment