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

EventLogReader

public class EventLogReader : IDisposable
Enables you to read events from an event log based on an event query. The events that are read by this object are returned as EventRecord objects.
namespace System.Diagnostics.Eventing.Reader { public sealed class EventLogLink { public string DisplayName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public bool IsImported { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public string LogName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } internal EventLogLink() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } }