Skip to content

Add a pino logger with LOG_LEVEL and request logging (#100) - #117

Open
Soham1660 wants to merge 2 commits into
candiedoperation:masterfrom
Soham1660:feat/100a-logger-core
Open

Soham1660 wants to merge 2 commits into
candiedoperation:masterfrom
Soham1660:feat/100a-logger-core

Conversation

@Soham1660

Copy link
Copy Markdown

Description

Part 1 of #100. Adds a pino logger configured with LOG_LEVEL, plus per-request logging in app.ts. Documents LOG_LEVEL in .env.example and the environment variables guide, and adds unit tests for the logger.

Converting the existing console.* calls in auth.ts and the controllers is a mechanical follow-up PR (part 2), kept separate to keep this one small. Other console.* calls (e.g. in the clients) are untouched by both parts.

Type of Change

  • New feature

Testing

Ran npm exec nx run pplserver:test-unit: build passes, 127 tests passing. Reviewers can check src/utils/logger.ts and test/unit/logger.test.js.

Screenshots

N/A

Checklist

  • Self-reviewed my own code
  • No console.log / debug statements added
  • Unit tests pass locally

This branch has not been deployed

No deployments
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