logfilename
v0.3.0
Published
log filename, date/time and severity with the winston logging library
Downloads
17
Maintainers
Readme
Helper module to log filename, date/time and colored severity with the winston logging library
Install
$ npm install --save logfilename
Usage
var options = {
console: {
level: 'debug',
timestamp: true,
colorize: true
},
file: {
filename: 'log.txt'
}
};
var log = require('logfilename')(__filename, options);
log.debug('debug message');
log.info('info message');
log.error('error message');
Test
$ npm test
Continuous integration
##Code climate
Npm package
License
MIT © Frederic Heem