Serilog.Sinks.Seq.Http.SeqIngestionApi
A substitutable interface type for the Seq HTTP ingestion API.
namespace Serilog.Sinks.Seq.Http
{
internal abstract class SeqIngestionApi : IDisposable
{
public const string RawEventFormatMediaType = "application/json";
public const string CompactLogEventFormatMediaType = "application/vnd.serilog.clef";
public const string EmptyClefPayload = "";
public Task<LogEventLevel?> IngestAsync(string clefPayload);
public abstract Task<IngestionResult> TryIngestAsync(string payload, string mediaType);
public virtual void Dispose();
protected SeqIngestionApi();
}
}