Serilog.LoggerConfigurationEventLogExtensions
Adds the WriteTo.EventLog() extension method to LoggerConfiguration.
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)
Adds a sink that writes log events to the Windows event log.
public static LoggerConfiguration EventLog(this LoggerSinkConfiguration loggerConfiguration, ITextFormatter formatter, string source, string logName = null, string machineName = ".", bool manageEventSource = false, LogEventLevel restrictedToMinimumLevel = 0)
Adds a sink that writes log events to the Windows event log.