@grow-codes/graylog - v0.1.1
    Preparing search index...

    Function encodeGelfUdp

    • Compresses (optional) and splits a GELF payload into datagrams: one datagram when it fits chunkSize, else chunks 0x1e 0x0f | id(8) | seq | count | data. Throws ValidationError when more than 128 chunks would be needed.

      Parameters

      • payload: Uint8Array
      • options: {
            chunkSize?: number;
            compression?: GelfCompression;
            messageId?: Uint8Array<ArrayBufferLike>;
        } = {}

      Returns Uint8Array<ArrayBufferLike>[]