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

Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink

public sealed class PeriodicBatchingSink : ILogEventSink, IDisposable
Buffers log events into batches for background flushing.

Construct a PeriodicBatchingSink.

public void Dispose()

public void Emit(LogEvent logEvent)

Emit the provided log event to the sink. If the sink is being disposed or the app domain unloaded, then the event is ignored.