Skip to main content

Module http_logger

Module http_logger 

Source
Expand description

The http-logger node — ships access logs to an arbitrary HTTP endpoint in batches.

Ports the APISIX http-logger plugin onto featherbit’s shared BatchSink and pooled outbound HTTP client. Each request builds a log entry via build_entry and hands it to the sink with a non-blocking, fire-and-forget push; a background task POSTs accumulated batches to uri. The node never mutates the request/response and never fails, so it belongs in the response pipeline, after the upstream node, where the final status/body are available.

Structs§

HttpLoggerFlusher 🔒
Delivers batches by POSTing them to the configured HTTP endpoint.
HttpLoggerPlugin
Batches access-log entries and POSTs them to an HTTP endpoint.

Enums§

ConcatMethod 🔒
How batched entries are serialized into the request body.

Functions§

build_http_body 🔒
Serializes a batch into an HTTP body plus its Content-Type. Factored out of the network path so payload shaping is unit-testable without a socket.
header_value 🔒
Coerces a JSON scalar to a header string; None for non-scalars.