<PackageReference Include="System.Diagnostics.EventLog" Version="10.0.4" />

System.Diagnostics.Eventing.Reader.EventLogException

public class EventLogException : Exception
Represents the base class for all the exceptions that are thrown when an error occurs while reading event log related information.
namespace System.Diagnostics.Eventing.Reader { public class EventLogException : Exception { public EventLogException(); protected EventLogException(int errorCode); protected EventLogException(SerializationInfo serializationInfo, StreamingContext streamingContext); public EventLogException(string message); public EventLogException(string message, Exception innerException); } }