Skip to content

Instantly share code, notes, and snippets.

@jxinging
Created August 25, 2015 11:35
Show Gist options
  • Select an option

  • Save jxinging/41619b6b04ff82f294d4 to your computer and use it in GitHub Desktop.

Select an option

Save jxinging/41619b6b04ff82f294d4 to your computer and use it in GitHub Desktop.
python logger
import logging
console = logging.StreamHandler()
console.setFormatter(logging.Formatter('%(levelname)s:%(name)s:%(asctime)s# %(message)s',
datefmt="%Y-%m-%d %H:%M:%S"))
logger = logging.getLogger("hls-grabber")
logger.addHandler(console)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment