<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="4.0.2-dev-00838" />

Serilog.Sinks.PeriodicBatching.PeriodicBatchingSinkOptions

Initialization options for PeriodicBatchingSink.
public int BatchSizeLimit { get; set; }

The maximum number of events to include in a single batch. The default is 1000.

public bool EagerlyEmitFirstEvent { get; set; }

Eagerly emit a batch containing the first received event, regardless of the target batch size or batching time. This helps with perceived "liveness" when running/debugging applications interactively. The default is true.

public TimeSpan Period { get; set; }

The maximum buffering delay between event batches. The default is two seconds.

public int? QueueLimit { get; set; }

Maximum number of events to hold in the sink's internal queue, or null for an unbounded queue. The default is 100000.