wikijs-fork/libs/winston.js

18 lines
310 B
JavaScript

"use strict";
var winston = require('winston');
module.exports = (isDebug) => {
winston.remove(winston.transports.Console);
winston.add(winston.transports.Console, {
level: (isDebug) ? 'debug' : 'info',
prettyPrint: true,
colorize: true,
silent: false,
timestamp: true
});
return winston;
};