Skip to content

Instantly share code, notes, and snippets.

@gistsobo
Created January 10, 2013 12:55
Show Gist options
  • Save gistsobo/4501855 to your computer and use it in GitHub Desktop.
Save gistsobo/4501855 to your computer and use it in GitHub Desktop.
Python: Configure logging with json config
import json
import logging
import logging.config
config = json.load(open('logging.cfg', 'r'))
logging.config.dictConfig(config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment