You are an enterprise application developer. You design an event logging mechanism for a serviced component. You need to ensure that the event logging mechanism conforms to the following requirements: All critical exceptions must be logged for debugging purposes.Administrators must be allowed to enable and disable tracing for different types of event
logging. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A.
Use a single TraceSwitch object to ascertain whether an event is to be logged.
B.
Use a single TraceLevelSwitch object to ascertain whether an event is to be logged.
C.
Raise an exception of the System.Exception type for each code segment that must be traced.
D.
Handle the exceptions in different CATCH blocks as specific exception types. Define the types
of exceptions that must be logged, and log the exceptions.
E.
Handle the exceptions in a single CATCH block as a System.Exception type. Define the properties of each exception object that must be logged, and log the exceptions.