Authored by ccbikai

日志错误不退出程序

... ... @@ -17,7 +17,8 @@ const logger = new (winston.Logger)({
new (FileTransport)(config.loggers.errorFile),
new (winston.transports.UdpTransport)(config.loggers.udp),
new (winston.transports.Console)(config.loggers.console)
]
],
exitOnError: false
});
module.exports = logger;
... ...