Skip to content

Instantly share code, notes, and snippets.

@alfredfrancis
Created March 17, 2017 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredfrancis/add3cdedba9140b17814d78733be3c3a to your computer and use it in GitHub Desktop.
Save alfredfrancis/add3cdedba9140b17814d78733be3c3a to your computer and use it in GitHub Desktop.
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