禁用事件查看器中的信息

时间:2013-01-06 04:48:03

标签: enterprise-library

您好,请您帮助我,在事件查看器中,有警告,信息,错误。我想在事件查看器中禁用信息。我正在使用Microsoft企业库。

1 个答案:

答案 0 :(得分:0)

要按严重性禁用日志记录,请参阅:Enable/Disable Enterprise Library logging on production

要禁用“常规”类别的信息消息,配置将类似于:

<categorySources>
    <add switchValue="Warning" name="General">
        <listeners>
            <add name="Formatted EventLog TraceListener" />
        </listeners>
    </add>
</categorySources>