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

Serilog.LoggerConfigurationEventLogExtensions

Adds the WriteTo.EventLog() extension method to LoggerConfiguration.
namespace Serilog { public static class LoggerConfigurationEventLogExtensions { public static LoggerConfiguration EventLog(this LoggerSinkConfiguration loggerConfiguration, string source, string logName = null, string machineName = ".", bool manageEventSource = false, string outputTemplate = "{Message}{NewLine}{Exception}", IFormatProvider formatProvider = null, LogEventLevel restrictedToMinimumLevel = 0, IEventIdProvider eventIdProvider = null); public static LoggerConfiguration EventLog(this LoggerSinkConfiguration loggerConfiguration, ITextFormatter formatter, string source, string logName = null, string machineName = ".", bool manageEventSource = false, LogEventLevel restrictedToMinimumLevel = 0, IEventIdProvider eventIdProvider = null); } }