Skip to content

fix(logger): emit string level names instead of numeric values#117

Merged
vigneshrajsb merged 1 commit intomainfrom
fix/log-status-gc
Mar 1, 2026
Merged

fix(logger): emit string level names instead of numeric values#117
vigneshrajsb merged 1 commit intomainfrom
fix/log-status-gc

Conversation

@vigneshrajsb
Copy link
Contributor

Summary

  • Adds a formatters.level option to the pino constructor in rootLogger.ts
  • Pino now emits "level":"info" (string) instead of "level":30 (numeric) in structured log output
  • Fixes log severity mapping in Groundcover, which expects string-level labels to correctly classify log entries

Test plan

  • Deploy to a non-production environment and confirm log entries in Groundcover show human-readable severity labels (info, warn, error, etc.) instead of numeric values
  • Verify no regression in local dev (pino-pretty output should be unaffected since formatters.level is only applied to the raw pino instance, not the pretty transport)

🤖 Generated with Claude Code

Adds a pino formatters.level option so logs include string severity
labels (e.g. "level":"info") rather than numeric codes (e.g. "level":30).
This fixes log severity mapping in Groundcover.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vigneshrajsb vigneshrajsb requested a review from a team as a code owner March 1, 2026 22:40
@vigneshrajsb vigneshrajsb merged commit cfb1652 into main Mar 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant