winston-lludol
A module with winston preconfigured.
Install
npm install --save winston-lludol
Example
const logger = ;// logger is an instance of winston.Logger. // So you have access to every winston method.logger;logger;logger;logger;logger;logger; logger;logger; // You can also edit the configuration.loggerlevel = 'debug'; // You can access to the winston Object inside the logger instance.logger;logger;
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'