ASGI Logging Middleware¶ Custom ASGI middleware for structured request lifecycle logging, performance timing, and unhandled exception handling. class StructLogMiddleware(app: ASGIApp)[source]¶ Bases: object ASGI middleware for structured request logging.