<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0-rc.1.24431.7" />

OverflowAction

public enum OverflowAction
Specifies how to handle entries in an event log that has reached its maximum file size.

Indicates that existing entries are retained when the event log is full and new entries are discarded.

Indicates that each new entry overwrites the oldest entry when the event log is full.

Indicates that new events overwrite events older than specified by the MinimumRetentionDays property value when the event log is full. New events are discarded if the event log is full and there are no events older than specified by the MinimumRetentionDays property value.