net 4 in C# with SQL Server 2008 R2.
I need to choose an error logging solution for my Web Application.
I read some article ELMAH and ASP.NET Health Monitoring on the topic but I would like have your opinion and thoughts on which system you prefers in your a real world application and why.
Some point in which I'm interested:
- setup and configuration
- error reports
- performance
ASP.NET Health Monitoring is not a logging solution. According to ASP.NET Health Monitoring overview:
ASP.NET health monitoring enables you to do the following tasks:
The level of required configuration depends on what you need to accomplish. For several of my applications, all we need is:
<healthMonitoring enabled="true">
<rules>
<add name="Application Lifetime Events On" eventName="Application Lifetime Events"
provider="EventLogProvider" profile="Default"/>
</rules>
</healthMonitoring>
This enables health monitoring and adds application lifetime events to those events collected by default. This way, we know when an application starts and stops, and why.
Note that we didn't have to touch any code to get this functionality.
I found set up and integration with ELMAH very very easy to do. If you use NuGet to install ELMAH, It would be a piece of cake like Scott Hanselman shows in this video.
You just need to do following on your package manager and thats it:-
install-package elmah
It's a matter of opinion (and requirements), but I'd choose ELMAH because it offers everything MS Health Monitoring offers, and then some. The biggest feature for me is the built in error viewer from ELMAH.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With