A pino transport that forwards logs to Redis Streams. Current version 1.0.3 enables high-throughput, structured logging into Redis Streams using the pino transport API. It leverages the node-redis client for Redis connectivity and supports TLS, authentication, and multiple stream keys. Compared to other Redis logging transports, it integrates directly with pino's pipeline, offering minimal overhead and async logging via pino's worker threads.
npm install pino-redis-streamsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a pino logger that writes all log messages to a Redis Stream using pino-redis-streams transport.
Use options: { stream: 'your-stream' } instead of streams.Explicitly pass password and socket config in clientOptions.
Attach an error listener: transport.on('error', (err) => console.error('Redis transport error', err)).Check for updated options in newer releases.
Upgrade pino to version 7 or higher.
Do not import directly; use pino.transport({ target: 'pino-redis-streams', options: {...} }).Verify Redis server is running and clientOptions has correct host, port, and password.
Ensure options.stream is a defined string (e.g., 'my-stream').
Install pino: npm install pino