Serilog.Sinks.MSSqlServer.MSSqlServerSink
Writes log events as rows in a table of MSSqlServer database.
namespace Serilog.Sinks.MSSqlServer
{
public class MSSqlServerSink : IDisposable
{
public const string DefaultSchemaName = "dbo";
public const int DefaultBatchPostingLimit = 50;
public static readonly TimeSpan DefaultPeriod;
public MSSqlServerSink(string connectionString, string tableName, int batchPostingLimit, TimeSpan period, IFormatProvider formatProvider, bool autoCreateSqlTable = false, ColumnOptions columnOptions = null, string schemaName = "dbo", ITextFormatter logEventFormatter = null);
public MSSqlServerSink(string connectionString, MSSqlServerSinkOptions sinkOptions, IFormatProvider formatProvider = null, ColumnOptions columnOptions = null, ITextFormatter logEventFormatter = null);
public Task EmitBatchAsync(IReadOnlyCollection<LogEvent> batch);
public Task OnEmptyBatchAsync();
public void Dispose();
protected virtual void Dispose(bool disposing);
}
}