Logging to elmah.io from Express
That's right. elmah.io doesn't only work with .NET. To integrate elmah.io into a Node Express web application, install the elmah.io npm package
npm install elmah.io
Add the following to your Express application:
var elmah = require("elmah.io");
var express = require("express");
var app = express();
app.use(elmah.auto({logId:"LOG_ID", application:"My App Name", version: "42.0.0"}));
Replace LOG_ID
with your log ID (Where is my log ID?). Every error is logged to elmah.io.
This article was brought to you by the elmah.io team. elmah.io is the best error management system for .NET web applications. We monitor your website, alert you when errors start happening and help you fix errors fast.
See how we can help you monitor your website for crashes Monitor your website