Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor logging after issue #251 #252

Open
WesTyler opened this issue Apr 8, 2016 · 0 comments
Open

Refactor logging after issue #251 #252

WesTyler opened this issue Apr 8, 2016 · 0 comments
Assignees

Comments

@WesTyler
Copy link
Member

WesTyler commented Apr 8, 2016

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();
});
@WesTyler WesTyler added this to the Search and Server Refactor milestone Apr 8, 2016
@WesTyler WesTyler self-assigned this Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant