Last active
September 29, 2016 17:14
-
-
Save thorsummoner/6a05bc1cfe4d1d5294060ec37e154f0c to your computer and use it in GitHub Desktop.
logging snippet
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
#!/usr/bin/env python3 | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logging.getLogger('urllib3').setLevel(logging.WARNING) | |
LOGGER = logging.getLogger(os.path.basename(__file__)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to http://stackoverflow.com/a/7243225/1695680