Hi all,
just few question:
config.py like in gunicorn?uvicorn?Thanks!
We don't currently support a config file, no.
If you're running uvicorn programmatically, then we do have a lower-level interface that allows passing a Config() instance, but it needs documenting.
You'll need to use Python's standard logging module for configuring the logging display (yup it'd be helpful for us to document this too)
Hi @tomchristie thanks! I was able to pass my logger into Config(). A configuration (python) file would be also very helpful.
@madkote Good call. Retitled this to reflect that part of the issue specifically.
There is a related PR https://github.com/encode/uvicorn/pull/323 about reading config from a file, though it is not gunicorn-like.
Let's close this in favor of #323 - we can tackle details of how a config file should look/work once we get to that point.
Having taken a look at this. Yes. And yes, let's make it gunicorn-like - they get it right.
Closing as a duplicate of #322