You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doesn't work when using serve() or even uvicorn.run() or uvicorn main:app....
Describe the solution you'd like
I was able to solve it by inspecting uvicorn's logging configuration and just naming all my loggers uvicorn, e.g. in each module logger = logging.getLogger("uvicorn"), but it would be nice to be able to use the standard logging idiom.
Example code
See above.
Problem solved
Explain what problem this feature would solve and how it would benefit users of the library:
It would allow users to use logging for production.
Additional context
It seems this is a tricky problem for uvicorn in general, probably because of things running async, because a lot of people have a hard time getting uvicorn logging to work apparently.
Confirmation
Please confirm the following:
I have checked the existing issues and pull requests to ensure this feature hasn't been requested before.
I have read the project's documentation to ensure this feature doesn't already exist.
The text was updated successfully, but these errors were encountered:
If you'd like to discuss your feature idea first with the community (highly recommended!) please visit our Discord channel.
Is your feature request related to a problem? Please describe.
using the standard logging, e.g.
doesn't work when using
serve()
or evenuvicorn.run()
oruvicorn main:app...
.Describe the solution you'd like
I was able to solve it by inspecting uvicorn's logging configuration and just naming all my loggers
uvicorn
, e.g. in each modulelogger = logging.getLogger("uvicorn")
, but it would be nice to be able to use the standard logging idiom.Example code
See above.
Problem solved
Explain what problem this feature would solve and how it would benefit users of the library:
It would allow users to use logging for production.
Additional context
It seems this is a tricky problem for uvicorn in general, probably because of things running async, because a lot of people have a hard time getting uvicorn logging to work apparently.
Confirmation
Please confirm the following:
The text was updated successfully, but these errors were encountered: