Package org.elasticsearch.common.logging
Class JsonLogsStream
- java.lang.Object
-
- org.elasticsearch.common.logging.JsonLogsStream
-
public class JsonLogsStream extends java.lang.Object
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 Type Method Description static java.util.stream.Stream<JsonLogLine>
from(java.io.BufferedReader reader)
static java.util.stream.Stream<JsonLogLine>
from(java.nio.file.Path path)
static java.util.stream.Stream<java.util.Map<java.lang.String,java.lang.String>>
mapStreamFrom(java.nio.file.Path path)
-
-
-
Method Detail
-
from
public static java.util.stream.Stream<JsonLogLine> from(java.io.BufferedReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
from
public static java.util.stream.Stream<JsonLogLine> from(java.nio.file.Path path) throws java.io.IOException
- Throws:
java.io.IOException
-
mapStreamFrom
public static java.util.stream.Stream<java.util.Map<java.lang.String,java.lang.String>> mapStreamFrom(java.nio.file.Path path) throws java.io.IOException
- Throws:
java.io.IOException
-
-