borjapazr / express-typescript-skeleton

🔰🦸 Template to start developing a REST API with Node.js (Express), TypeScript, Ts.ED, ESLint, Prettier, Husky, Prisma, etc.

Home Page:https://express-typescript-skeleton.bpaz.dev/api/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve logger

borjapazr opened this issue · comments

The current logger can be modified to improve the developer's experience in detecting potential problems or bugs.

  • Remove color characters from log files when there is a compilation error. This is caused by ts-node and the --pretty property (TS_NODE_PRETTY)
  • Evaluate the use of other logging libraries (pino, @tsed/logger, log4js, etc.)
  • Add a correlation id to all logs of the same request