BatchingTransport buffers log entries and flushes them in batches.
Note: If flush() is called while a timer is pending, there is a potential race:
The underlying transport to flush entries to
Batching configuration (maxBatch, flushMs)
Optional
Maximum entries per batch. Default: 100
Flush interval in ms. Default: 5000
Buffer a single log entry. Triggers flush when maxBatch is reached.
Force-flush all buffered entries to the inner transport.
BatchingTransport buffers log entries and flushes them in batches.
Note: If flush() is called while a timer is pending, there is a potential race: