<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-preview.5.24306.7" />

EventLogEntryType

public enum EventLogEntryType
Specifies the event type of an event log entry.
Error = 1

An error event. This indicates a significant problem the user should know about; usually a loss of functionality or data.

A failure audit event. This indicates a security event that occurs when an audited access attempt fails; for example, a failed attempt to open a file.

An information event. This indicates a significant, successful operation.

A success audit event. This indicates a security event that occurs when an audited access attempt is successful; for example, logging on successfully.

Warning = 2

A warning event. This indicates a problem that is not immediately significant, but that may signify conditions that could cause future problems.