Skip to content

Conversation

@charlypa
Copy link
Member

  • Remove messageKey config from logger (fixes pino-pretty display)
  • Convert all logging to standard Pino API: log.info({data}, 'message')
  • Update tests to match new logging behavior
  • ECS format automatically converts msg -> message in production
  • Cleaner, more readable logs matching Fastify documentation
  • All 32 tests passing (25 unit + 7 integration)

- Remove messageKey config from logger (fixes pino-pretty display)
- Convert all logging to standard Pino API: log.info({data}, 'message')
- Update tests to match new logging behavior
- ECS format automatically converts msg -> message in production
- Cleaner, more readable logs matching Fastify documentation
- All 32 tests passing (25 unit + 7 integration)
- Removed createLogger() function from src/utils/logger.js
- Removed createLogger tests from test/unit/utils/logger-test.spec.js
- Added src/utils/logger.js to exclude list in .nycrc.unit.json
- Only createFastifyLogger() is needed for Fastify's internal logging
- All 25 unit tests passing
@sonarqubecloud
Copy link

@charlypa charlypa merged commit 889d31a into main Oct 19, 2025
4 checks passed
@charlypa charlypa deleted the ecs branch October 19, 2025 19:36
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.

2 participants