JH
JH
@dmontagu I am using FastAPI and trying to log all the 500 Internal Server error only by using the ServerErrorMiddleware from Starlette using add_middleware in FastAPI. Is there a way...
@talarari I use contextmiddleware from from starlette ``` from starlette_context.middleware import ContextMiddleware class ContextFromMiddleware(ContextMiddleware): """ This class helps in setting a Context for a Request-Response which is missing in Starlette...
@JivanRoquet yes but the FastAPI [documentation ](https://fastapi.tiangolo.com/advanced/custom-request-and-route/) does have what you might be looking for.
@bcb Maybe this [implementation](https://github.com/nsidnev/fastapi-realworld-example-app/search?q=logger&unscoped_q=logger) And there is [this](https://fastapi-serviceutils.readthedocs.io/en/latest/api/fastapi_serviceutils.app.html#fastapi-serviceutils-app-logger-module).
@ericqqqqq @p0xd1 any solution for TLS hosts?
@ericqqqqq I need 587 and this worked for me, https://hub.docker.com/r/juanluisbaptiste/postfix
Any solution on this?