public class FramedTelemetryLogSink extends Object implements LogSink
+----------------------+------------------------+---------------------+-----------------------+
| Frame Type - 4 bytes | Length (len) - 4 bytes | Timestamp - 8 bytes | Message - 'len' bytes |
+----------------------+------------------------+---------------------+-----------------------+
The first 4 bytes indicate the type of the frame - log frames have a type defined as the hex value 0xa55a0001. The second 4 bytes should indicate the message's length. The next 8 bytes contain UNIX timestamp of the message in microsecond accuracy. The next 'len' bytes contain the message. The byte order is big-endian.
Constructor and Description |
---|
FramedTelemetryLogSink(FileDescriptor fd) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
log(byte[] message) |
void |
log(com.amazonaws.services.lambda.runtime.logging.LogLevel logLevel,
com.amazonaws.services.lambda.runtime.logging.LogFormat logFormat,
byte[] message) |
public FramedTelemetryLogSink(FileDescriptor fd) throws IOException
IOException
public void log(com.amazonaws.services.lambda.runtime.logging.LogLevel logLevel, com.amazonaws.services.lambda.runtime.logging.LogFormat logFormat, byte[] message)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024. All rights reserved.