addLogEntry method

void addLogEntry(
  1. CompressibleLogEntry entry
)

Adds a log entry to the compression buffer

Implementation

void addLogEntry(CompressibleLogEntry entry) {
  _compressionBuffer.add(entry);

  // Compress if buffer is full
  if (_compressionBuffer.length >= _batchSize) {
    _compressBatch();
  }
}