EventLogType Enum

Definition

Defines the type of events that are logged in an event log. Each log can only contain one type of event.

C#
public enum EventLogType
Inheritance
EventLogType

Fields

Name Value Description
Administrative 0

These events are primarily for end users, administrators, and support. The events that are found in the Administrative type logs indicate a problem and a well-defined solution that an administrator can act on. An example of an administrative event is an event that occurs when an application fails to connect to a printer.

Operational 1

Events in an operational type event log are used for analyzing and diagnosing a problem or occurrence. They can be used to trigger tools or tasks based on the problem or occurrence. An example of an operational event is an event that occurs when a printer is added or removed from a system.

Analytical 2

Events in an analytic event log are published in high volume. They describe program operation and indicate problems that cannot be handled by user intervention.

Debug 3

Events in a debug type event log are used solely by developers to diagnose a problem for debugging.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also