LogCompression class
Log Compression for Strategic Logger
Provides efficient log compression to reduce network bandwidth and storage requirements for high-volume logging scenarios.
Properties
-
compressionBuffer
→ List<
CompressibleLogEntry> -
Compression buffer for testing
no setter
-
compressionStream
→ Stream<
CompressedLogBatch> -
Stream of compressed log batches
no setter
- compressionTimer → Timer?
-
Compression timer for testing
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLogEntry(
CompressibleLogEntry entry) → void - Adds a log entry to the compression buffer
-
calculateTimeRange(
List< CompressibleLogEntry> entries) → Map<String, DateTime> - Calculate time range for testing
-
clearBuffer(
) → void - Clears the compression buffer
-
compressLogBatch(
List< CompressibleLogEntry> entries) → Future<CompressedLogBatch> - Compress log batch for testing
-
compressLogEntry(
CompressibleLogEntry entry) → Future< CompressedLogEntry> - Compresses a single log entry
-
decompressLogBatch(
CompressedLogBatch batch) → Future< List< CompressibleLogEntry> > - Decompresses a compressed log batch
-
decompressLogEntry(
CompressedLogEntry entry) → Future< CompressibleLogEntry> - Decompresses a compressed log entry
-
dispose(
) → void - Disposes the log compression
-
getStats(
) → LogCompressionStats - Gets compression statistics
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startCompression(
) → void - Starts the compression timer
-
stopCompression(
) → void - Stops the compression timer
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCompressionStats(
CompressedLogBatch batch) → void - Update compression stats for testing
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → LogCompression
-
no setter