更新时间:2023-12-03 08:36:52
下面是解决方案:
<?xml version="1.0"?>
<configuration>
<system.web>
<healthMonitoring>
<rules>
<remove name="Failure Audits Default" />
</rules>
</healthMonitoring>
</system.web>
</configuration>
请注意,这将prevent记录了所有 System.Web.Management.WebFailureAuditEvent
事件,其中包括事件范围4005-4011。有可能是一种方法,只是删除4005,但这种方法是配不上我。
Note that this will prevent the logging off all System.Web.Management.WebFailureAuditEvent
events, which covers the event range 4005-4011. There is probably a way to just remove 4005, but this solution is good enough for me.
这些都是帮助我的链接:
These are the links that helped me: