Allow the distributor log and info log to be compressed before uploading, if they're large.
--compress_log_threshold_bytes controls this behavior.

RELNOTES: None
PiperOrigin-RevId: 280471980
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildToolLogs.java b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildToolLogs.java
index 11b5cbe..a1720d9 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildToolLogs.java
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/BuildToolLogs.java
@@ -120,6 +120,10 @@
       return localPath;
     }
 
+    public LocalFileCompression getCompression() {
+      return compression;
+    }
+
     LocalFile toLocalFile() {
       return new LocalFile(localPath, fileType, compression);
     }