Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 715 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 715 Bytes

NTS Logger

Codeship Status for ntslive/node-logger

Logger used by NTS in their Node.js applications. Captures errors with Raven.

Installation

Include as dependency in package.json:

"node-logger": "ntslive/node-logger#0.0.2",

Note that this requires the Git tag 0.0.2 to be present.

Then run npm install as usual.

Usage

const logger = require('node-logger');
logger.error(errorMessage, errorInstance, { dataContext: dataObject });

Testing

Run npm test

To run eslint with fix flag, run bin/eslint