1.0.1 • Published 8 years ago
winston-extra v1.0.1
winston-extra
A extra console for winston
Usage
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');
Installation
Installing npm (node package manager)
$ curl http://npmjs.org/install.sh | sh
Installing winston-extra
$ npm install winston
$ npm install winston-extra
Example