Application Insights TraceListener:设置严重性级别 [英] Application Insights TraceListener: Setting Severity level
问题描述
答案可能是简单的否,但我想设置所报告的跟踪事件的严重性级别.
The answer to this might be a simple no, but I was wanting to set the severity level of the Trace events that are reported.
我正在使用Application Insights API和Application Insights TraceListener的预发行版本.
I am using the prerelease versions of the Application Insights API and Application Insights TraceListener.
基本上,我只想过滤出具有严重性的Trace事件.我知道我可以在Azure门户中查看应用程序见解时将其过滤掉,但我希望根本不报告它们.是否可以为应用程序见解设置跟踪事件的严重性级别?
Basically I just want to filter out Trace events with a verbose severity. I know I can filter them out when viewing the Application insights in the Azure portal, but I would rather them not be reported at all. Is there a way to set the severity level of Trace Events for application Insights?
推荐答案
已知的限制是,如果在配置过滤器的"listeners"标记下添加应用程序洞察侦听器,则该侦听器将不起作用. 但是,如果您将其添加到共享侦听器使用过滤器就可以正常工作.
It is a known limitation that if you add application insights listener under "listeners" tag in your config filters will not work. But if you add it under shared listeners with a filter it should work.
这篇关于Application Insights TraceListener:设置严重性级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!