const winston = require('winston');

var logger = new (winston.Logger)({
  transports: [
    new (winston.transports.File)({
      name: 'debug-file',
      filename: 'urge-debug.log',
      handleExceptions: true,
      humanReadableUnhandledException: true,
      level: 'debug'
    }),
    new (winston.transports.File)({
      name: 'error-file',
      filename: 'urge-error.log',
      handleExceptions: true,
      humanReadableUnhandledException: true,
      level: 'error'
    })
  ]
});

module.exports = logger;