现在我真的很喜欢Visual 2013的新应用程序洞察,我不想删除它。然而,它确实垃圾邮件我的调试输出相当多。
我得到一排排的输出,就像
Application Insights Telemetry: {"ver":1,"name":"Microsoft.ApplicationInsights.PerformanceCounter","time":"2015-04-23T11:38:03.1252550+01:00","iKey":"758c18d5-055e-48a8-bbcf-9c3301402b2c","tags":{"ai.internal.sdkVersion":"0.13.2.132","ai.application.ver":"Unknown","ai.device.type":"PC","ai.device.id":"Pat-PC","ai.device.oemName":"Dell Inc.","ai.device.model":"Dell XPS430 ","ai.device.network":"6","ai.device.language":"en-GB","ai.device.machineName":"Pat-PC","ai.device.os":"Windows NT 6.1.7601.65536"},"data":{"type":"Microsoft.ApplicationInsights.PerformanceCounterData","item":{"categoryName":"Processor","counterName":"% Processor Time","instanceName":"_Total","value":35.9710731506348,"ver":1}}}这使得我不可能在调试语句中实际使用调试输出。我如何使应用程序洞察力保持沉默,或者如何配置Visual来不显示这些语句?
发布于 2015-04-23 18:57:09
汉斯·帕桑特是对的。DeveloperMode是触发AI在DebugOutput中编写事件的原因。注意,它也迫使AI立即发送数据。因此,如果我们将其设置为假数据,则将分批处理并每分钟发送一次。
发布于 2016-11-23 00:55:06
只需关闭这些消息,没有其他副作用:
TelemetryDebugWriter.IsTracingDisabled = true;https://stackoverflow.com/questions/29821104
复制相似问题