1.0.0 • Published 4 years ago

trustcheckr-node-logger v1.0.0

Weekly downloads
12
License
ISC
Repository
-
Last release
4 years ago

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);