@hoangnam.io/qa-tools

0.4.0 • Public • Published

Description:

This project works on: Logs, Error Handling, Otel.

  1. Logs: it provides a function so that nodejs express projects can easily employ & quickly get logging right
  2. Error Handling: Just as an example for reference. Each project can define its own error types, and how to handle errors
  3. Otel: As an example.

Nodejs Log Lib: support log to console, mongodb and google cloud logging

  1. To log requests: using createLogMiddleware()
  2. To log in general: using getLogger()

How to use:

  1. Pass the config for the each logger to enable them

Package Sidebar

Install

npm i @hoangnam.io/qa-tools

Weekly Downloads

14

Version

0.4.0

License

ISC

Unpacked Size

20.5 kB

Total Files

21

Last publish

Collaborators

  • dinhhoangnam