<PackageReference Include="System.Diagnostics.EventLog" Version="5.0.0-preview.3.20214.6" />

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 } }