@gvray/logger / BatchOptions
Interface: BatchOptions
Defined in: middleware/batch.ts:6
Options for batchMiddleware.
Properties
maxSize
maxSize:
number
Defined in: middleware/batch.ts:8
Number of log entries to collect before flushing.
maxWait
maxWait:
number
Defined in: middleware/batch.ts:10
Maximum time in milliseconds to wait before flushing an incomplete batch.
onFlush
onFlush: (
contexts) =>void
Defined in: middleware/batch.ts:12
Callback invoked with the collected contexts when a batch flushes.
Parameters
contexts
Returns
void