Loguru is a great alternative logging library for
Python. However, since Uvicorn uses Python's standard
logging library, using Loguru looks inconsistent. This module injects an intercept
handler in the correct location after initializing Uvicorn so that all logs get routed
through Loguru.
Usage
Call run_uvicorn_loguru with an instance of uvicorn.Config: