Created
March 17, 2017 09:53
-
-
Save alfredfrancis/add3cdedba9140b17814d78733be3c3a 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 | |
import logging.handlers | |
import time | |
logging.basicConfig(level=logging.DEBUG, | |
format='%(asctime)s %(levelname)-8s %(message)s') | |
logging.getLogger().addHandler(logging.handlers.DatagramHandler('localhost', 8045)) | |
while True: | |
logging.debug("This shouldn't show up") | |
logging.info("This should show up") | |
time.sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment