Skip to content

Improve server logging infrastructure#2219

Merged
caneppelevitor merged 3 commits intostagefrom
refactor/improve-logging-infrastructure
Feb 9, 2026
Merged

Improve server logging infrastructure#2219
caneppelevitor merged 3 commits intostagefrom
refactor/improve-logging-infrastructure

Conversation

@caneppelevitor
Copy link
Collaborator

@caneppelevitor caneppelevitor commented Feb 5, 2026

Description

  • Replace console.log/error/warn with NestJS Logger across server modules
  • Enhance WinstonLogger: pretty output in dev, JSON in prod, configurable log levels
  • Add global exception filter for consistent error handling and logging
  • Add request ID tracking for log correlation across requests
  • Add uncaught exception and unhandled rejection handler

Related Ticket #

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Existing feature enhancement (non-breaking change which modifies existing functionality)

Testing

Provide relevant testing instructions. What scenarios are impacted? What build may be necessary to test this change?

Developer Checklist

General

  • Code is appropriately commented, particularly in hard-to-understand areas
  • Repository documentation has been updated (Readme.md) with additional steps required for a local environment setup.
  • No console.log or related logging is added.
  • No code is repeated/duplicated in violation of DRY. The exception to this is for new (MVP/Prototype) functionality where the abstraction layer may not be clear (comments should be added to explain the violation of DRY in these scenarios).
  • Documented with TSDoc all library and controller new functions

Frontend Changes

  • No new styling is added through CSS files (Unless it's a bugfix/hotfix)
  • All types are added correctly

Backend Changes

  • All endpoints are appropriately secured with Middleware authentication
  • All new endpoints have a interface schema defined

Tests

  • All existing unit and end to end tests pass across all services
  • Unit and end to end tests have been added to ensure backend APIs behave as expected

Test IDs

  • Include the test ID when adding new tasks or components.
  • Check that test IDs are present in the modified components.

Merge Request Review Checklist

  • An issue is linked to this PR and these changes meet the requirements outlined in the linked issue(s)
  • High risk and core workflows have been tested and verified in a local environment.
  • Enhancements or opportunities to improve performance, stability, security or code readability have been noted and documented in Project do Github issues if not being addressed.
  • Any dependent changes have been merged and published in downstream modules
  • Changes to multiple services can be deployed in parallel and independently. If not, changes should be broken out into separate merge requests and deployed in order.

caneppelevitor added 2 commits February 9, 2026 08:51
…ogging, add request ID tracking for log correlation across requests, add uncaught exception and unhandled rejection handler
@caneppelevitor caneppelevitor force-pushed the refactor/improve-logging-infrastructure branch from bf92839 to 62304a2 Compare February 9, 2026 11:52
…r.error() to accept string | Error as the second argument
@caneppelevitor caneppelevitor merged commit 4e2d58c into stage Feb 9, 2026
6 of 8 checks passed
@LuizFNJ LuizFNJ mentioned this pull request Feb 25, 2026
46 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

1 participant