Skip to content

Refactor logging after issue #251 #252

@WesTyler

Description

@WesTyler

Once #251 is complete, logging can be refactored as a middleware to use on express.router instance.

Docs: http://expressjs.com/en/guide/routing.html
Sample:

var router = express.Router();

// middleware that is specific to this router
router.use(function timeLog(req, res, next) {
  // call logging middleware here
  next();
});

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions