all files / src/ log.js

100% Statements 3/3
100% Branches 2/2
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171× 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;