How to stop Elmah logging?

前端 未结 2 1157
遥遥无期
遥遥无期 2021-01-05 16:25

I am using Elmah.MVC 2 with MVC3, ASP.NET 4.5 on Azure Websites.

I have set it up to log, via the web.config, to XML files on the webserver. This all works. However

2条回答
  •  难免孤独
    2021-01-05 16:38

    Just remove the elements from your section. Or comment it out. This will disable the logging functionality, and all you have to do to restore functionality when you want it is add those elements back in again. This way, you don't have to remove any of the core Elmah components that could lead to problems later on when you want to restore functionality, particularly if you miss something.

提交回复
热议问题