UNPKG

webappengine

Version:

A web application server that can host multiple web apps running with Node.js.

23 lines (20 loc) 377 B
"use strict"; /** * errlog: * * Write request and error information to stderr, loggly, or similar services. * * Examples: * * app.use(middleware.errlog()) * * @return {Function} * @api public */ var errlog = function errlog() { return function (err, req, res, next) { console.error(err.stack); next(err); }; }; module.exports = errlog;