Command-line option to turn off logging configuration #2685
Unanswered
def-gthill
asked this question in
Ideas
Replies: 1 comment
-
|
+1 to this - am basically forced to write a python entrypoint using Additionally, when passing EDIT: #2209 somewhat reflects this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using uvicorn in projects that set up a specific logging configuration on startup. But uvicorn does its own configuration for its loggers and overrides the project-specific configuration, leading to inconsistent logging formats. I can suppress this when starting uvicorn programmatically via
uvicorn.runby passinglog_config=None, but there seems to be no way to do this from the CLI—the only options are to accept uvicorn's default or pass a separate configuration file.My suggestion is to have a separate flag (e.g.
--no-log-config) to suppress logging configuration.Beta Was this translation helpful? Give feedback.
All reactions