Kludex / fastapi-tips

FastAPI Tips by The FastAPI Expert!
2.11k stars 79 forks source link

how to disable uvicorn / fastapi default logging #23

Closed oieduardorabelo closed 3 months ago

oieduardorabelo commented 3 months ago

thanks for the initiative @Kludex

one question that i struggle to find a solid answer + i saw many horrors in the wild trying to do it:

how to disable the default logs from uvicorn / fastapi

and now with the fastapi cli fastapi dev .. / fastapi run ..

how to achieve the "unix rule of silence", if is running correctly, no logs are displayed?

CleanShot 2024-07-23 at 01 11 16

Kludex commented 3 months ago

My recommendation is to use Uvicorn directly.