bunyan-redis
Bunyan redis transport
Installation
npm install bunyan-redis
Usage
With existing redis client connection.
var client = redis; var transport = container: 'logs' client: client; var logger = bunyan;
And with connection data.
var transport = container: 'logs' host: '127.0.0.1' port: 6379 password: 'password' db: 0; var logger = bunyan;
Options
- host - redis hostname
- port - redis port
- db - redis database index
- password - redis password
- client - redis client instance
- container - redis key
Tests
npm test