Logging to elmah.io from a running website on Azure
To enable error logging to elmah.io, you usually install one of our client integrations through PowerShell or Visual Studio and deploy a new version of your website to a web server. Sometimes you need to monitor an already running website or don't want logging logic as part of your repository. Using the elmah.io Site Extension for Azure App Services, error logging can be added to an already running website.
Check out this video tutorial or keep reading for the text version:
To start logging errors from your Azure web application, go to the Azure Portal and select the website you want to monitor. Click the Extensions tool:
Click the Add button and select .NET elmah.io for Azure:
Accept the terms and click the OK button. The elmah.io Site Extension is now added. Once added, restart the website for the new extension to load.
Make sure to use the app setting names
Your Azure web application now logs all uncaught exceptions to elmah.io. Please notice that this only works for ASP.NET, MVC, Web API, and similar. ASP.NET Core websites should be installed locally and re-deployed. Also, the elmah.io Site Extensions supports .NET Full Framework 4.6 and newer.
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.