You are developing an application that uses a .config file.
The relevant portion of the .config file is shown as follows:
You need to ensure that diagnostic data for the application writes to the event log by using
the configuration specified in the .config file. What should you include in the application code?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Correct answer is C.
Debug.Writeline() statements will not be included in the Release compilation by default, whereas Trace.Writeline statements will be included.
C
C
Correct:
http://stackoverflow.com/questions/1133779/how-to-direct-the-eventlogtracelistener-to-create-in-a-specific-log
You need to ensure that diagnostic data for the application “””writes to the event log””” by using the configuration
specified in the .config file.
Only alternative D writes to the event log.