<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="10.0.1-dev-00193" />

Serilog.Sinks.MSSqlServer.MSSqlServerAuditSink

public class MSSqlServerAuditSink : ILogEventSink, IDisposable
Writes log events as rows in a table of MSSqlServer database using Audit logic, meaning that each row is synchronously committed and any errors that occur are propagated to the caller.
public MSSqlServerAuditSink(string connectionString, string tableName, IFormatProvider formatProvider, bool autoCreateSqlTable = false, ColumnOptions columnOptions = null, string schemaName = "dbo", ITextFormatter logEventFormatter = null)

Construct a sink posting to the specified database. Note: this is the legacy version of the extension method. Please use the new one using MSSqlServerSinkOptions instead.

public MSSqlServerAuditSink(string connectionString, MSSqlServerSinkOptions sinkOptions, IFormatProvider formatProvider = null, ColumnOptions columnOptions = null, ITextFormatter logEventFormatter = null)

Construct a sink posting to the specified database.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the Serilog.Sinks.MSSqlServer.MSSqlServerAuditSink and optionally releases the managed resources.

public void Emit(LogEvent logEvent)

Emit the provided log event to the sink.