module.exports = function() {
winston.exceptions.handle()(
new winston.transports.Console({ exitOnError : false, colorize: true, prettyPrint: true}),
new winston.transports.File({ filename: 'uncaughtExceptions.log' }));
process.on(‘unhandledRejection’, (ex) => {
throw ex;
});