[tor-commits] [metrics-lib/release] Override logLines method from LogDescriptor.
karsten at torproject.org
karsten at torproject.org
Wed Apr 18 14:35:36 UTC 2018
commit c54b264ad865d522bceb135d0fd0ab6b116e5f81
Author: iwakeh <iwakeh at torproject.org>
Date: Mon Feb 26 15:24:26 2018 +0000
Override logLines method from LogDescriptor.
---
.../java/org/torproject/descriptor/WebServerAccessLog.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/main/java/org/torproject/descriptor/WebServerAccessLog.java b/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
index 5f3ad73..a24b9cd 100644
--- a/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
+++ b/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
@@ -6,6 +6,7 @@ package org.torproject.descriptor;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
+import java.util.stream.Stream;
/**
* Contains a sanitized web server access log file from a {@code torproject.org}
@@ -63,6 +64,15 @@ public interface WebServerAccessLog extends LogDescriptor {
public List<String> getUnrecognizedLines();
/**
+ * Returns a stream of all valid log lines.
+ *
+ * @since 2.3.0
+ */
+ @Override
+ public Stream<WebServerAccessLog.Line> logLines()
+ throws DescriptorParseException;
+
+ /**
* Facilitates access to all log line fields that don't only contain
* default values post sanitization.
*
More information about the tor-commits
mailing list