ELMAH Configuration Validator
Disclamer: Configuring ELMAH (as well as elmah.io) happens through your application configuration file (like web.config). In the next version of ASP.NET, web.config files are removed, but web.config files will probably continue to exist for years to come.
Let's face it, configuring ASP.NET applications in XML is sort of pain in the a... There's a trend towards fluent configuration in C# code, which is way easier to write and understand. But for now, ELMAH (as well as elmah.io) is configured in your web/app.config.
To ease writing ELMAH configuration, we created a GitHub repository a couple of days ago, with a XML schema for writing ELMAH config, originally created by Jeff Lingis. Today we take another step towards writing pain-free ELMAH config. Please welcome the ELMAH Configuration Validator.
The ELMAH Configuration Validator lets you validate your web.config file for errors in your ELMAH config. It's not a validator for web.config files per se, but rather a piece of code looking for
<elmah> elements and validating them against the ELMAH Schema.
In the example above, I have a typo in the
<errorLog> element, which the validator points out.
This post 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.