A capped Redis transport for the winston logging library (v3). Version 3.1.0 is the current stable release, with minimal maintenance updates since 2019. It stores log messages as JSON literals in a fixed-length Redis list, enabling efficient log rotation. Supports channel-based streaming and custom metadata. Requires Node >=8.11.x, winston ^3.0.0, and redis ^2.8.0. Alternatives include winston-logstash-transport or custom transports.
npm install winston-redisNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a winston logger with the winston-redis transport, including Redis host/port from environment variables.
Upgrade to winston 3.x and Node >=8.11.x.
Use `redis@2.8.0` explicitly or fork/update transport to support 3.x.
Manage the redis client lifecycle externally or avoid passing a client.
Use async/await or attach `.catch()` when calling `logger.log()` or `logger[level]()`.
Install redis@2.8.0: `npm install redis@2.8.0`
Start Redis server or set `host`/`port` options correctly.
Upgrade winston to 3.x: `npm install winston@3`