[Sub-issue #80-B]: Backend Pino Migration + Correlation IDs #82
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue
Refs #80 - Unified Debug Logging System
Scope
Migrate backend from Winston to Pino using API-compatible wrapper. Add correlation ID propagation.
Files to Modify
backend/src/core/logging/logger.ts- Replace Winston with Pino wrapperbackend/src/core/plugins/logging.plugin.ts- Use @fastify/pino for request loggingbackend/package.json- Add pino, @fastify/pino; remove winstondocker-compose.yml- Add POSTGRES_LOG_* and REDIS_LOGLEVEL env varsImplementation Details
logger.ts (Pino wrapper maintaining Winston API)
Correlation ID Middleware
PostgreSQL/Redis Config
Add to docker-compose.yml postgres and redis services:
Acceptance Criteria
Dependencies
Depends on #80-A (config generator)
Milestone
Milestone 2: Backend Logging