@justlogit/node
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

justlogit-node

Library for JustLog.IT which supports modern javascript ES6 import and module syntax.

Installation

npm install @justlogit/node --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

import { Logger } from "@justlogit/node";

var logger = new Logger('');

var errorObject = {};

errorObject.message = '';

errorObject.stack = '';

errorObject.details = '';

errorObject.user = ''; // optional

logger.logError(errorObject);

Readme

Keywords

none

Package Sidebar

Install

npm i @justlogit/node

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

29.3 kB

Total Files

22

Last publish

Collaborators

  • jeffnordlund