@hoangnam.io/qa-tools
v0.3.10
Published
Logging, Error handling, Notifying for Express codebase
Downloads
10
Maintainers
Readme
Nodejs Log Lib: support log to console, mongodb and google cloud logging
- To log requests: using createLogMiddleware()
- To log in general: using getLogger()
How to use:
- To disable log to console, set enableConsoleLog param to false
- To enable log to mongo, pass mongoConfig: {connectionString, collectionName}
- To enable send to to gg cloud: set env variable GOOGLE_APPLICATION_CREDENTIALS to service account file path