Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dictConfig in logconfig #1087
From logging docs:
Could you suppport
referenced this issue
Sep 3, 2015
@benoitc is a CLI option needed for every setting? It's not something I've addressed in the pull request above - that just works with the python configuration file.
If it was a CLI option, how would you use it? The only way I could see it working is if the value is dumped in a json or yaml file and the filename is used as the setting, but that just makes things more complicated if you are already using the python config.
I figured out how to do this for dictConfig using a json config file.
In your gunicorn config.py file you put the following code.
Then start with
This should let you configure your logging using a json file instead of the default INI format.
Please excuse my ignorance, but I am slightly confused how #1602 enables me to load a dict config via the gunicorn command line:
What am I missing?