Use single Elmah.axd for multiple applications with single DB log

前端 未结 3 1587
有刺的猬
有刺的猬 2021-02-02 09:44

We have a single SQL Log for storing errors from multiple applications. We have disabled the elmah.axd page for each one of our applications and would like to have a new applic

3条回答
  •  执念已碎
    2021-02-02 10:21

    It's not a problem to override the default Elmah handler factory so that it will filter Elmah logs by applications. I wrote a sample app that shows how to do it with MySql: http://diagnettoolkit.codeplex.com/releases/view/103931. You may as well check a post on my blog where I explain how it works.

提交回复
热议问题