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