Skip to content

Implement structured logging with JSON output for production #914

Description

@nanaf6203-bit

Problem

NestJS Logger outputs plain text logs. Production logging systems require structured JSON for querying and alerting.

Expected Outcome

All logs output structured JSON in production mode.

Acceptance Criteria

  • Integrate pino or winston as logger backend
  • JSON log format in production, pretty-print in development
  • Automatic inclusion of timestamp, module, correlation ID
  • No sensitive data in logs

Files Affected

src/main.ts, new src/common/logger.ts

Difficulty

Easy

Estimated Effort

Small (1-2 days)

Labels

observability, enhancement, ops

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions