var winston = require('winston');
var logger = new (winston.Logger)({
  transports: [
            new (winston.transports.Console)({ json: false, timestamp: true , colorize: true }),
            new winston.transports.File({ filename: './logs/debug.log', json: false , colorize: true })
          ],
  exceptionHandlers: [
            new (winston.transports.Console)({ json: false, timestamp: true, colorize: true }),
            new winston.transports.File({ filename: './logs/exceptions.log', json: false ,colorize: true })
          ],
  exitOnError: false
});

module.exports = logger;
