fastapi Adding Context to each FastAPI request using request state Take anything from loggers to data to functions straight from your request in your endpoints
python Log Breadcrumbs: only show Logs leading up to an Error How to log breadcrumbs using Python's built-in logging package