Problem
The backend has no request logging. When errors occur in production, there is no way to trace a request through the system or correlate incoming requests with outgoing responses in logs.
Proposed Solution
Create backend/src/opsce/common/middleware/logger.middleware.ts. Generate a UUID correlationId per request, attach it to request and response headers, and log structured JSON per request/response.
Acceptance Criteria
Problem
The backend has no request logging. When errors occur in production, there is no way to trace a request through the system or correlate incoming requests with outgoing responses in logs.
Proposed Solution
Create
backend/src/opsce/common/middleware/logger.middleware.ts. Generate a UUIDcorrelationIdper request, attach it torequestandresponseheaders, and log structured JSON per request/response.Acceptance Criteria
X-Correlation-IdUUID header (generated if not provided by the client)Authorization,Cookie) are redacted from logsOpsceModule