0

Out of the box the line

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

does not show up in my Diagnostic Window. The following execution always returns false in the ServiceEventSource.cs

this.IsEnabled()

However removing that check still shows nothing in the logs. I cannot output info using the generated class.

Can anyone help?

Thanks

KnowHoper
  • 4,352
  • 3
  • 39
  • 54
  • I have seen this behavior when I open the Diagnostic Events window in Visual Studio before running the application on the local dev cluster. When I launch the application, VS opens another Diagnostic Events window. Neither one of the windows receive any events while the application is running. The only way to clear it is to restart VS. – HiredMind Oct 19 '17 at 21:56

1 Answers1

0

This issue was solved by adding the EventSource in visual studio as per the correct answer here:

Azure ServiceFabric samples not logging to ETW

KnowHoper
  • 4,352
  • 3
  • 39
  • 54