Socket
Socket
Sign inDemoInstall

bunyan-redis

Package Overview
Dependencies
5
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bunyan-redis

Bunyan redis transport


Version published
Weekly downloads
84
decreased by-18.45%
Maintainers
1
Install size
376 kB
Created
Weekly downloads
 

Readme

Source

bunyan-redis

Bunyan redis transport

Installation

npm install bunyan-redis

Usage

With existing redis client connection.

var client = redis.createClient();

var transport = new RedisTransport({
  container: 'logs',
  client: client
});

var logger = bunyan.createLogger({
  name: 'bunyan-redis',
  streams: [{
    type: 'raw',
    level: 'trace',
    stream: transport
  }]
});

And with connection data.

var transport = new RedisTransport({
  container: 'logs',
  host: '127.0.0.1',
  port: 6379,
  password: 'password'
  db: 0
});

var logger = bunyan.createLogger({
  name: 'bunyan-redis',
  streams: [{
    type: 'raw',
    level: 'trace',
    stream: transport
  }]
});

Options

  • host - redis hostname
  • port - redis port
  • db - redis database index
  • password - redis password
  • client - redis client instance
  • container - redis key

Tests

npm test

Keywords

FAQs

Last updated on 29 Sep 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc