1.0.3 • Published 6 years ago

nodejs-base-logger v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
6 years ago

messages-consumer

A base logger that logs according to some env vars and also can post error logs into a rest api

DEBUG_MODE - when available and not OFF it'll log warnings and normal logs LOG_STORAGE_REST_API_URL - the url that will be used to post logs into SERVICE_NAME - the name of the current service that do the logging

When posting new log messages the data in the body will be:

messageType: '${logType}-log',
source: SERVICE_NAME || 'missing',
messageContent: {
    logType: '${logType}',
    logMessage: '${message text}',
    logData: if exists
}
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago