trustcheckr-node-logger

1.0.0 • Public • Published

node-logger

A custom logger for our production applications.

Usage

const Logger = require('@trustcheckr/node-logger');

const logger = new Logger();

// passing objects are optional

logger.info('this is a info log');

// these logs will not be added to the log file
logger.debug('this is a debug log', {
    'key': 'value'
});

logger.error('Hi, I am an error! Fix me', errorObj);

Readme

Keywords

Package Sidebar

Install

npm i trustcheckr-node-logger

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.45 kB

Total Files

3

Last publish

Collaborators

  • trustcheckr