This repository demonstrate a way to override FastAPI default exception handlers and logs with your own
- Add milliseconds time measurements to the requests' logs.
- Custom HTTPException handler.
- Custom Request Validation handler - with extra details on the client input data.
- Custom Unhandled exception handler - with extra details on the error reason.
poetry install
poetry run uvicorn main:app --reload
https://medium.com/@roy-pstr/fastapi-server-errors-and-logs-take-back-control-696405437983