【问题标题】:How to disable Elmah memory logging?如何禁用 Elmah 内存记录?
【发布时间】:2009-09-03 14:58:13
【问题描述】:

我们在一个 asp.net 2.0 网络应用程序中使用 Elmah。有没有办法禁用默认的内存日志提供程序?换句话说,我们正在登录到 SQL Server,因此我们希望完全消除默认情况下为 true 的 MemoryErrorLog 提供程序。

谢谢,

杰森

【问题讨论】:

  • 为什么即使配置中没有相应的行,Elmah 也会记录到内存中?
  • 即使配置文件中没有说明,你怎么知道它仍在记录到内存中?

标签: asp.net logging elmah


【解决方案1】:

您需要从web.config 中删除此行:

<errorLog type="Elmah.MemoryErrorLog, Elmah" size="50" />

【讨论】:

  • 该行不在我的 web.config 中。我已经设置了 但除了 SQL db 之外,Elmah 仍在记录到内存。
猜你喜欢
  • 2014-10-28
  • 2017-06-30
  • 1970-01-01
  • 2019-03-02
  • 2011-11-18
  • 2013-04-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多