New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winston-cassandra

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-cassandra

Cassandra transport for winston

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

winston-cassandra

A Cassandra transport for winston.

Installation

  $ npm install winston
  $ npm install winston-cassandra

Usage

  var winston = require('winston');

  // Add Cassandra transport (it also adds the field `winston.transports.Cassandra`)
  winston.add(require('winston-cassandra'), options);

The Cassandra transport accepts the following options.

  • level: Level of messages that this transport should log.
  • table: The name of the Cassandra column family you wish your logs (default: 'logs').
  • partitionBy: The name of the Cassandra column family you wish your logs. Possible values 'hour' and 'day'(Default).
  • consistency: The consistency of the insert query (default: quorum).

In addition to the options: accepted by the Node.js Cassandra driver Client

  • hosts: Cluster nodes that will handle the write requests. Array of strings containing the hosts, for example ['host1', 'host2'] (required).
  • keyspace: The name of the keyspace that will contain the logs table (required). The keyspace should be already created in the cluster.
  • ...

Keywords

FAQs

Package last updated on 16 Jan 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc