fluent / fluent-logger-forward-node

A fluent forward protocol implementation for Node.js
https://fluent.github.io/fluent-logger-forward-node/
Apache License 2.0
11 stars 8 forks source link

Add last method #13

Closed jamiees2 closed 3 years ago

jamiees2 commented 3 years ago

This adds a getter which enables you to access the last method of each promise. This allows implementations to block until the last event has been successfully flushed or acknowledged.

jamiees2 commented 3 years ago

This doesn't handle retries at all, and even then, we could have the case that the first item in the queue fails, is requeued, but the second item succeeds.