module-log
Logger for Individual Node.js Module(s)The idea is that you can set up the name of the module and use pre-defined logging functionalities for each individual module. In terminal window, the output of log statements is going to be according to file (or module) name(s).
Enhancement over normal ol'
console.log()
.Installation
$ npm install module-log --save
Usage
const log = require('module-log');
log.setFileName('server.js');
log.log('testing');
log.error('An error occurred!!!');
API
setFileName
log
debug
error
warn
info
---