justlogit

1.1.3 • Public • Published

JustLog.IT Node Library

Simple library that wraps the JustLog.IT logging methods to simplify implementation in your applciation.

Installation

npm install justlogit --save

Requirements

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.

Methods

logError(obj);

logPerformance(method, timing, [user], [details]);

logEvent(name, description, [user]);

logInformation(method, details, [user]);

Usage

var Logger = require('justlogit');

var logger = new Logger('');

var errorObject = {};

errorObject.message = '';

errorObject.stack = '';

errorObject.details = '';

errorObject.user = ''; // optional

logger.logError(errorObject);

Package Sidebar

Install

npm i justlogit

Weekly Downloads

1

Version

1.1.3

License

ISC

Unpacked Size

53.9 kB

Total Files

23

Last publish

Collaborators

  • jeffnordlund