nerdexam
Microsoft

70-518 · Question #19

You are developing a Windows application by using Microsoft .NET Framework 4. You plan to design a diagnostic logging strategy that will be used in a production environment. You need to ensure that…

The correct answer is A. Trace. See the full explanation below for the reasoning.

Question

You are developing a Windows application by using Microsoft .NET Framework 4. You plan to design a diagnostic logging strategy that will be used in a production environment. You need to ensure that the strategy meets the following requirements:

  • Enables or disables diagnostic messages by using an application

configuration option.

  • Changes the level of detail in the diagnostic messages without

recompiling the application. Which class should you use?

Options

  • ATrace
  • BDebug
  • CContract
  • DEventLog

How the community answered

(23 responses)
  • A
    83% (19)
  • B
    4% (1)
  • C
    4% (1)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice