<PackageReference Include="Serilog.Sinks.Seq" Version="9.0.0-dev-02307" />

Serilog.Sinks.Seq.Http.SeqIngestionApi

abstract class SeqIngestionApi : IDisposable
A substitutable interface type for the Seq HTTP ingestion API.
public const string CompactLogEventFormatMediaType = "application/vnd.serilog.clef"

Media type for the modern CLEF payload format.

public const string EmptyClefPayload = ""

A valid but empty payload in the CompactLogEventFormatMediaType format.

public const string RawEventFormatMediaType = "application/json"

The media type describing the original JSON-based payload format. Use is now discouraged. Remains here only so that durable buffer files written by earlier versions of the sink can still be read and ingested.

protected SeqIngestionApi()

public virtual void Dispose()

public Task<LogEventLevel?> IngestAsync(string clefPayload)

Ingest clefPayload.

public abstract Task<IngestionResult> TryIngestAsync(string payload, string mediaType)

Attempt to ingest payload.