<PackageReference Include="Serilog.Sinks.EventLog" Version="3.1.0" />

Serilog.Sinks.EventLog.EventLogSink

public class EventLogSink : ILogEventSink
Writes log events as documents to the Windows event log.
public EventLogSink(string source, string logName, ITextFormatter textFormatter, string machineName, bool manageEventSource)

Construct a sink posting to the Windows event log, creating the specified source if it does not exist.

public EventLogSink(string source, string logName, ITextFormatter textFormatter, string machineName, bool manageEventSource, IEventIdProvider eventIdProvider)

Construct a sink posting to the Windows event log, creating the specified source if it does not exist.

public void Emit(LogEvent logEvent)

Emit the provided log event to the sink.