您好,请您帮助我,在事件查看器中,有警告,信息,错误。我想在事件查看器中禁用信息。我正在使用Microsoft企业库。
答案 0 :(得分:0)
要按严重性禁用日志记录,请参阅:Enable/Disable Enterprise Library logging on production。
要禁用“常规”类别的信息消息,配置将类似于:
<categorySources>
<add switchValue="Warning" name="General">
<listeners>
<add name="Formatted EventLog TraceListener" />
</listeners>
</add>
</categorySources>