EventLogMode Enumeration

 

Determines the behavior for the event log service handles an event log when the log reaches its maximum allowed size (when the event log is full).

Namespace:   System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

public enum EventLogMode

Member nameDescription
AutoBackup

Archive the log when full, do not overwrite events. The log is automatically archived when necessary. No events are overwritten.

Circular

New events continue to be stored when the log file is full. Each new incoming event replaces the oldest event in the log.

Retain

Do not overwrite events. Clear the log manually rather than automatically.

.NET Framework
Available since 3.5

System.Diagnostics.Eventing.Reader Namespace
Technology Summary for Reading and Managing Event Logs
Event Log Scenarios

Return to top
Show: