【问题标题】:ServiceEventSource.Current.ServiceMessage doesn't show in Visual Studio Diagnostic Event windowServiceEventSource.Current.ServiceMessage 未显示在 Visual Studio 诊断事件窗口中
【发布时间】:2017-10-19 06:18:53
【问题描述】:

开箱即用的行

ServiceEventSource.Current.ServiceMessage(serviceContext, $"Starting Kestrel on {url}");

没有出现在我的诊断窗口中。以下执行总是在 ServiceEventSource.cs

中返回 false
this.IsEnabled()

但是,删除该检查仍然不会在日志中显示任何内容。我无法使用生成的类输出信息。

谁能帮忙?

谢谢

【问题讨论】:

  • 在本地开发集群上运行应用程序之前,我在 Visual Studio 中打开“诊断事件”窗口时看到了这种行为。当我启动应用程序时,VS 会打开另一个诊断事件窗口。应用程序运行时,任何一个窗口都不会收到任何事件。清除它的唯一方法是重新启动VS。

标签: azure-service-fabric


【解决方案1】:

这个问题是通过在visual studio中添加EventSource来解决的,这里的正确答案是:

Azure ServiceFabric samples not logging to ETW

【讨论】:

    猜你喜欢
    • 2017-05-18
    • 2017-12-24
    • 2017-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多