winston npm code example
Example 1: js winston npm
const winston = require('winston');
// for development
logger.add(new winston.transports.Console({
format: winston.format.simple(),
}));
Example 2: winston logger node js
const info = { level: 'info', // Level of the logging message message: 'Hey! Log something?' // Descriptive message being logged.};