1.0.0 • Published 5 years ago
trustcheckr-node-logger v1.0.0
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);
1.0.0
5 years ago