elasticio-keenio-logger
v1.0.0
Published
Simple helper library for recording errors and transactions in elastic.io to keen.io
Downloads
6
Maintainers
Readme
elasticio-keenio-logger
Simple helper library for recording errors and transactions in elastic.io to keen.io
Installation
npm install --save latheesan-k/elasticio-keenio-logger
Usage
- Setup your node.js env variables:
projectId
andwriteKey
- Load the library like this:
let logger = require('elasticio-keenio-logger');
Record Error
let recordErrorResult = logger.recordError({
orgName: 'Organisation Name',
msgBody: { test: 'data' },
taskName: 'Sync Order',
errorMessage: 'Error message here',
stackTrace: 'Stack trace here'
});
console.log('recordErrorResult', recordErrorResult);
Record Transaction
Coming soon~