Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ELMAH and ASP.NET MVC custom errors not getting logged

I am trying to use ELMAH for my error logging, and I've tried several others

Neither of which seem to log errors when the custom error feature in ASP.NET is enabled

I'm using the [HandleError] attribute in all my controllers, at first I thought that was the problem but it isn't just whenever I enable the custom error pages it doesn't log any errors even though half these error logging libraries say they are suppose to.

What am I doing wrong?

like image 265
dswatik Avatar asked Feb 01 '26 17:02

dswatik


1 Answers

A couple things to check are that you have your HttpModule registered for ELMAH. You don't have any other process intercepting the errors.

like image 84
Nick Berardi Avatar answered Feb 04 '26 06:02

Nick Berardi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!