Volodymyr Bilyachat

Migration in progress as of 3/09/2018 :)

Elmah filter by exception type

14 December 2015

In Elmah there two ways to filter exception

  1. by code
  2. by config
In this post i will just show how to filter exception using config file this is pretty simple 

          <equal binding="HttpStatusCode" value="404" type="Int32" />
          <is-type binding="BaseException" type="Namespace.BaseException, AssembyName" />

So current config will ignore all 404 and exception who inherited from BaseException.  But note that important thing is that assembly name is specified or elmah will try to search in Elmah assembly which will cause an error