code: function getTransports(config) {
    var transports = {
      console: {
        level: config.level,
        handleExceptions: true,
        colorize: true,
        prettyPrint: true
      },
      file: {
        level: config.level,
        filename: path.join(config.file.dir, FILE_NAME),
        maxsize: config.file.maxsize,
        maxFiles: config.file.maxfiles,
        json: false,
        timestamp: true
      }
    };
    transports.error = {
      filename: path.join(config.file.dir, ERROR_FILE_NAME),
      maxsize: config.file.maxsize,
      maxFiles: config.file.maxfiles,
      timestamp: true,
      json: true,
      prettyPrint: true
    };
  
    return transports;
  }
docs: winston transports.
  
  @param {Object} config .
  @return {Object} .