UNPKG

@hoangnam.io/qa-tools

Version:

Logging, Error handling, Notifying for Express codebase

17 lines (10 loc) 561 B
# 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