<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-rc.1.24431.7" />

EventLogStatus

public sealed class EventLogStatus
Contains the status code or error code for a specific event log. This status can be used to determine if the event log is available for an operation.
public string LogName { get; }

Gets the name of the event log for which the status code is obtained.

public int StatusCode { get; }

Gets the status code or error code for the event log. This status or error is the result of a read or subscription operation on the event log.