问题
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