<PackageReference Include="System.Diagnostics.EventLog" Version="10.0.0-preview.1.25080.5" />

OverflowAction

public enum OverflowAction
Specifies how to handle entries in an event log that has reached its maximum file size.
namespace System.Diagnostics { public enum OverflowAction { DoNotOverwrite = -1, OverwriteAsNeeded, OverwriteOlder } }