code: function (app, next) {
  
        if (hasDebug) {
          app.use(function (req, res, next) {
  
            var params = _.keys(req.params).length
              ? '\n' + formatJSON(req.params, '  ')
              : '-';
  
            debug('  params : '.cyan + params);
  
            next();
          });
        }
  
        if (hasVerbose) {
          app.use(morgan('' +
            '  ref    : :referrer\\n'.grey +
            '  uag    : :user-agent\\n'.grey +
            '  addr   : :remote-addr\\n'.grey +
            '  date   : :date'.grey, {
            immediate: true
          }));
        }
  
        next(null, app);
      }
docs: middleware：request params