Serilog.Sinks.MSSqlServer.MSSqlServerAuditSink
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.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases the unmanaged resources used by the Serilog.Sinks.MSSqlServer.MSSqlServerAuditSink and optionally
releases the managed resources.
Emit the provided log event to the sink.