errlog = () => {
  return (err, req, res, next) => {
    console.error(err.stack);
    next(err);
  };
}
errlog:

  Write request and error information to stderr, loggly, or similar services.

Examples:

  app.use(middleware.errlog())

@return {Function}
@api public