<PackageReference Include="Microsoft.Extensions.Logging.EventLog" Version="11.0.0-rc.3.26522.148" />

Microsoft.Extensions.Logging.EventLog.WindowsEventLog

sealed class WindowsEventLog : IEventLog
The windows event log.
public int? DefaultEventId { get; set; }

public EventLog DiagnosticsEventLog { get; }

The diagnostics event log.

public int MaxMessageSize { get; }

The maximum message size.

public WindowsEventLog(string logName, string machineName, string sourceName)

Initializes a new instance of the WindowsEventLog class.

public void WriteEntry(string message, EventLogEntryType type, int eventID, short category)