Reputation: 1511
Working with the Service Fabric, Diagnostic Events Viewer in Visual Studio plays a huge role as it allows me to see all the messages posted from my fabric services. When I add another service to the app, it always gets created with its own instance of EventSource class that I can use to emit messages. But when it comes to a service created as ASP.NET core project, I don't see any of the events. I don't even see ETW Provider from the ASP.NET core project on the list of all the registered providers in Diagnostic Events Viewer. Any thoughts on how to make events logged from the ASP.NET Core project present in the Viewer?
P.S.
I was able to see events emitted from ASP.NET Core project with PerfView utility, but it's not as much comfortable as Diagnostic Events Viewer.
Upvotes: 0
Views: 212
Reputation: 1511
Ok, based on the conversation with Peter Bons, the issue could be 'solved' by adding provider name manually into the list of all the registered providers in Diagnostic Event Viewer, and then events start showing. Although why it does not happen automatically for Asp.Net Core Service remains TBD.
Upvotes: 1