public class ChronicleLogReader extends Object
Constructor and Description |
---|
ChronicleLogReader(String path)
Create reader with default wire type
|
ChronicleLogReader(String path,
net.openhft.chronicle.wire.WireType wireType) |
Modifier and Type | Method and Description |
---|---|
static void |
printf(long timestamp,
ChronicleLogLevel level,
String loggerName,
String threadName,
String message,
Throwable throwable,
Object[] args)
Simple
ChronicleLogProcessor implementation. |
void |
processLogs(ChronicleLogProcessor processor,
boolean waitForIt)
Decode logs
|
public ChronicleLogReader(@NotNull String path)
path
- the path to Chronicle Logs storagepublic ChronicleLogReader(@NotNull String path, @NotNull net.openhft.chronicle.wire.WireType wireType)
path
- the path to Chronicle Logs storagewireType
- Chronicle wire type. Must match the wire type specified in corresponding Chronicle Loggerpublic void processLogs(@NotNull ChronicleLogProcessor processor, boolean waitForIt)
processor
- user-provided processor called for each log messagewaitForIt
- whether to wait for more data or stop after EOF reachedpublic static void printf(long timestamp, ChronicleLogLevel level, String loggerName, String threadName, String message, @Nullable Throwable throwable, Object[] args)
ChronicleLogProcessor
implementation. Prints formatted message to stdoutCopyright © 2018. All rights reserved.