Multiple choice

Which namespace provides the event log support?

  1. using System.log

  2. using System.Diagnostics

  3. using System.Event

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The System.Diagnostics namespace in .NET Framework provides classes for event logging (EventLog, EventLogEntry, EventLogInstaller) and other diagnostics features like performance counters and process tracing. This namespace is the correct location for event log functionality.