Simple library that wraps the JustLog.IT logging methods to simplify implementation in your applciation.
npm install justlogit --save
Make sure you have set up a JustLog.IT account and set up your application for logging. You will need to the application logging token to run this library.
logError(obj);
logPerformance(method, timing, [user], [details]);
logEvent(name, description, [user]);
logInformation(method, details, [user]);
var Logger = require('justlogit');
var logger = new Logger('');
var errorObject = {};
errorObject.message = '';
errorObject.stack = '';
errorObject.details = '';
errorObject.user = ''; // optional
logger.logError(errorObject);