@hoangnam.io/qa-tools

0.3.10 • Public • Published

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. To disable log to console, set enableConsoleLog param to false
  2. To enable log to mongo, pass mongoConfig: {connectionString, collectionName}
  3. To enable send to to gg cloud: set env variable GOOGLE_APPLICATION_CREDENTIALS to service account file path

Package Sidebar

Install

npm i @hoangnam.io/qa-tools

Weekly Downloads

4

Version

0.3.10

License

ISC

Unpacked Size

17.9 kB

Total Files

20

Last publish

Collaborators

  • dinhhoangnam