Complete Elmah Logging Setup for asp.net web api 2

Viewed 1950

I have been reading so many different posts the last hour. I cannot simply find one, start to finish article / tutorial on how to wire up elmah to do the following in asp.net web api 2:

  1. Which nuget package to install
  2. Log ALL exceptions, 500, 404 , 200 etc in controller and pipeline space
  3. Store Exception In SQL or Memory
  4. View the exceptions at /elmah.axd
  5. Email Exceptions to email address.

I seem to have found bits and pieces of this all over the net, but not one that ties them all together. And if I must be honest I have not come right with it either.

1 Answers
Related