A extra console for winston
var winston = require('winston');
var ExtraConsole = require('winston-extra');
var logger = new (winston.Logger)({
transports: [
new (ExtraConsole)({
level: 'info',
colorize: 'all',
prettyPrint: true,
handleExceptions: true
})
]
});
logger.info('Data to log.');
logger.error('test error');
$ curl http://npmjs.org/install.sh | sh
$ npm install winston
$ npm install winston-extra