0

I know Elmah can be used to manually log errors much like log4net can be used. However, is it possible to log a caught exception as well as e-mail the exception at the same time much like it does for unhandled exceptions.

Thanks for your time

Dragan
  • 3,713
  • 12
  • 42
  • 59

1 Answers1

0

The answer to this Q is YES.

Elmah.ErrorSignal.FromCurrentContext().Raise(new Exception("logs it to ELMAH as well as it sends an email"));
Dragan
  • 3,713
  • 12
  • 42
  • 59