You are an enterprise application developer. You create a Microsoft Windows-based service application.
The application must perform the following tasks:
Monitor running processes for critical events.
Log critical events to an e-mail and send the e-mail to the system administrators. Record and include stack information as part of the critical event.
You must be able to configure application event logging at run time. Application event logging must have minimal impact on runtime performance. You need to choose an appropriate monitoring feature to fulfill these requirements. Which feature should you choose?
A.
Microsoft Windows Management Instrumentation (WMI) events
B.
The System Event Log
C.
A custom TraceListener
D.
The Application Event Log