Since it dictConfigjust uses a dictionary, you can build a dictionary in any way convenient for you. One example of reading from a file is a JSON format configuration. Then you can just do something like
import json
import logging
with open('myconfig.json') as f:
config_dict = json.load(f)
logging.config.dictConfig(config_dict)
if the JSON file has an appropriate schema.
, YAML, .