0.2.1 • Published 2 years ago

@hoangnam.io/log-lib v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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
0.2.1

2 years ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago