export method
Exports a batch of log records.
This method typically serializes and transmits data to a destination. It should NOT be called concurrently with other Export calls. It must NOT block indefinitely and should have a reasonable timeout. It must NOT retry on failure (that's the processor's responsibility).
@param logRecords The batch of log records to export @return The result of the export operation
Implementation
@override
Future<ExportResult> export(List<LogRecord> r) async {
if (_isShutdown) return ExportResult.failure;
_records.addAll(r);
return ExportResult.success;
}