Package org.elasticsearch.common.logging
Class JsonLogsStream
java.lang.Object
org.elasticsearch.common.logging.JsonLogsStream
Returns a stream of json log lines.
This is intended to be used for easy and readable assertions for logger tests
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<JsonLogLine>
from
(BufferedReader reader) static Stream<JsonLogLine>
from
(BufferedReader reader, org.elasticsearch.xcontent.ObjectParser<JsonLogLine, Void> logLineParser) static Stream<JsonLogLine>
mapStreamFrom
(Path path)
-
Method Details
-
from
public static Stream<JsonLogLine> from(BufferedReader reader, org.elasticsearch.xcontent.ObjectParser<JsonLogLine, Void> logLineParser) throws IOException- Throws:
IOException
-
from
- Throws:
IOException
-
from
- Throws:
IOException
-
mapStreamFrom
- Throws:
IOException
-