code: function configLogger(path,level,transConfig,procs) {
      var trans = [],config = {},consoleOpt,fileOpt;
  
      //配置输出控制台的日志
      if(transConfig && transConfig.Console) {
          consoleOpt = _.merge(defaultOptions.Console,transConfig.Console);
          trans.push(new (winston.transports.Console)(consoleOpt));
      }
      //配置写文件的日志
      if(path) {
          defaultOptions.File.filename = path;
          if(transConfig && transConfig.File) {
              fileOpt = _.merge(defaultOptions.File,transConfig.File);
          } else {
              fileOpt = defaultOptions.File;
          }
          trans.push(new (winston.transports.File)(fileOpt));
      }
  
      //如果存在退出错误配置，进行设置
      if(transConfig && transConfig.exitOnError) {
          config.exitOnError = transConfig.exitOnError;
      } else {
          config.exitOnError = defaultOptions.exitOnError;
      }
  
      config.level = level?level:defaultOptions.level;
      config.transports = trans;
      if(procs) {
           config.rewriters = procs.rewriters||[];
           config.filters = procs.filters||[];
      }
     
      var logger = new (winston.Logger)(config);
      return logger;
  }
docs: 配置日志
  @param  {String}  path      路径
  @param  {String}  level     日志级别
  @param  {Object}  transConfig     配置项
  @param {Object}   procs    日志后处理器
  @return {Object}            日志