Application Insights TraceListener: Setting Severity level

独自空忆成欢 提交于 2020-01-03 17:09:19

问题


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.

I am using the prerelease versions of the Application Insights API and Application Insights TraceListener.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/30651841/application-insights-tracelistener-setting-severity-level

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!