<PackageReference Include="Serilog" Version="4.3.2-dev-02430" />

Serilog.Configuration.BatchingOptions

public class BatchingOptions
Initialization options for BatchingSink.
public int BatchSizeLimit { get; set; }

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

public TimeSpan BufferingTimeLimit { get; set; }

The maximum delay between event batches. The default is two seconds. If a batch can be filled before the buffering time limit is reached, it will be emitted without waiting.

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 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. When the limit is exceeded, events are discarded.

public TimeSpan RetryTimeLimit { get; set; }

The maximum time that the sink will keep retrying failed batches for. The default is ten minutes. Lower this value to reduce buffering in high-load scenarios.

public BatchingOptions()