Which namespace provides the event log support?
-
using System.log
-
using System.Diagnostics
-
using System.Event
-
None of these
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.