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

EventLogInformation

public sealed class EventLogInformation
Allows you to access the run-time properties of active event logs and event log files. These properties include the number of events in the log, the size of the log, a value that determines whether the log is full, and the last time the log was written to or accessed.
namespace System.Diagnostics.Eventing.Reader { public sealed class EventLogInformation { public int? Attributes { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public DateTime? CreationTime { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public long? FileSize { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public bool? IsLogFull { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public DateTime? LastAccessTime { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public DateTime? LastWriteTime { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public long? OldestRecordNumber { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } public long? RecordCount { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } internal EventLogInformation() { } } }