Serilog.Core.IBatchedLogEventSink
A destination that accepts events in batches. Many sinks gain a performance advantage by handling events in batches,
for example to combine multiple events into a single network request to a remote collector. Because the client
application cannot wait for every event to be flushed when batching is used, batched sinks normally work
asynchronously to conserve local resources while batches are sent.
namespace Serilog.Core
{
public interface IBatchedLogEventSink
{
Task EmitBatchAsync(IReadOnlyCollection<LogEvent> batch);
Task OnEmptyBatchAsync();
}
}