Skip to content

Replace console.log and console.error with NestJS Logger across the codebase #893

Description

@nanaf6203-bit

Problem

Multiple instances of console.log() and console.error() exist in: src/auth/rate-limit.service.ts, src/config/swagger.config.ts, src/utils/validate-env.ts, src/notifications/notifications.service.ts, src/users/email-verification.service.ts.

Why It Matters

console.log bypasses NestJS logging infrastructure: logs don't follow configured log levels, no structured metadata, cannot be redirected to external logging services.

Expected Outcome

Zero console.log/console.error calls in production code.

Acceptance Criteria

  • All console.log and console.error calls replaced with this.logger
  • Appropriate log levels used
  • no-console ESLint rule set to error

Files Affected

src/auth/rate-limit.service.ts, src/config/swagger.config.ts, src/utils/validate-env.ts, src/versioning/examples.controller.ts, src/notifications/notifications.service.ts, src/users/email-verification.service.ts

Difficulty

Easy

Estimated Effort

Small (1-2 hours)

Labels

tech-debt, observability

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