| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1× 1× 1× | const winston = require('winston');
const logger = new winston.Logger({
transports: [
new (winston.transports.Console)({
timestamp: true,
handleExceptions: true,
json: false,
level: process.env.LOG_LEVEL || "silly",
prettyPrint: true,
colorize: true
})
],
exitOnError: false
});
module.exports = logger;
|