Developing ASP.NET MVC Web Applications — Question 79
You are developing an ASP.NET MVC application that will run on Azure.
The application uses Event Tracing for Windows (ETW) for logging operations.
You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API.
Which data source should you use?
Answer options
- A. Azure Diagnostic infrastructure logs
- B. Windows event logs
- C. performance counters
- D. .NET EventSource
Correct answer: D
Explanation
.NET EventSource is the correct choice because it is specifically designed to work with ETW, allowing for efficient event logging and retrieval in .NET applications. The other options, while useful for different types of logging, do not directly provide access to ETW data as required by the question.