<PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0-preview.2.22152.2" />

EventLogWatcher

public class EventLogWatcher : IDisposable
namespace System.Diagnostics.Eventing.Reader { public class EventLogWatcher : IDisposable { public bool Enabled { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public event EventHandler<EventRecordWrittenEventArgs> EventRecordWritten { add { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } remove { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public EventLogWatcher(EventLogQuery eventQuery) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogWatcher(EventLogQuery eventQuery, EventBookmark bookmark) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogWatcher(EventLogQuery eventQuery, EventBookmark bookmark, bool readExistingEvents) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public EventLogWatcher(string path) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } public void Dispose() { } protected virtual void Dispose(bool disposing) { } } }