winston-lludol
A module with winston preconfigured.
Install
npm install --save winston-lludol
Example
const logger = require('winston-lludol');
// logger is created with winston.createLogger
// So you have access to every winston method
logger.error('example - error');
logger.warn('example - warn');
logger.info('example - info');
logger.verbose('example - verbose');
logger.debug('example - debug');
logger.silly('example - silly');
logger.info('[category] example');
logger.debug('example with meta', {foo: 'bar'});
Screenshot
More information
The default transport is a custom winston.transports.Console
.
Levels and colors available (default value from winston.config.npm
):
{
error: 'red',
warn: 'yellow',
info: 'green',
verbose: 'cyan',
debug: 'blue',
silly: 'magenta'
}