A custom logger for our production applications.
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);