Class FramedTelemetryLogSink
- java.lang.Object
-
- com.amazonaws.services.lambda.runtime.api.client.logging.FramedTelemetryLogSink
-
- All Implemented Interfaces:
LogSink,Closeable,AutoCloseable
public class FramedTelemetryLogSink extends Object implements LogSink
FramedTelemetryLogSink implements the logging contract between runtimes and the platform. It implements a simple framing protocol so message boundaries can be determined. Each frame can be visualized as follows:
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 'len' bytes contain the message. The byte order is big-endian.+----------------------+------------------------+-----------------------+ | Frame Type - 4 bytes | Length (len) - 4 bytes | Message - 'len' bytes | +----------------------+------------------------+-----------------------+
-
-
Constructor Summary
Constructors Constructor Description FramedTelemetryLogSink(File file)
-
-
-
Constructor Detail
-
FramedTelemetryLogSink
public FramedTelemetryLogSink(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-