{"agent":"claude","input":"Add structured logging to this React Router app's custom Express server. Read package.json, server.js, server/app.ts, app/context.ts, app/root.tsx, app/routes/home.tsx, react-router.config.ts, vite.config.ts and the Dockerfile first. Replace morgan with pino and pino-http in both the development and production branches of server.js: a base logger in server/logger.ts with the level from LOG_LEVEL, redaction of the authorization and cookie headers, and pino-pretty only when NODE_ENV is development; pino-http with a genReqId that reuses x-request-id or makes a UUID, echoed on the response; one line per request with id, method, url, status and response time, error level on 500 or a thrown error, debug level for static assets. Replace the console.log startup lines and log the error the development branch currently passes to next without logging. Add a logger context in app/context.ts set from req.log in getLoadContext, and use it in the home loader. Add server/logging.test.mjs for node --test that starts the built server, sends a request with x-request-id and an Authorization header, and asserts the JSON line's id, status and redaction. Remove morgan and its types. Run npm run typecheck, npm run build and the test, and open a pull request with the output and one sample log line.","resources":[{"url":"https://github.com/your-org/your-app"}]}