onWriteError property

LogWriteErrorHandler? onWriteError
final

Called when the store failed to persist a batch; without it the failure goes to diagnostics, like queue overflow and a failure of the handler itself. Entries from the batch are not retried.

Do not log from here into the logger this sink is attached to: with a broken store the failure would produce new entries and new failures.

Implementation

final LogWriteErrorHandler? onWriteError;