Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Cassandra transport for winston
JavaScript
Branch: master
Failed to load latest commit information.
test Use prepare flag and version bump.
.gitignore Initial commit
.npmignore Initial commit
.travis.yml Added travis build image
LICENSE.txt Initial commit
README.md fixed readme formatting
index.js Add the name option
package.json 0.3.0

README.md

winston-cassandra

A Cassandra transport for winston logging library.

Installation

  $ npm install winston
  $ npm install winston-cassandra

Build Status

Usage

  var winston = require('winston');

  // Adds a 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 (default: 'info').
  • table: The name of the Cassandra column family you want to store log messages in (default: 'logs').
  • partitionBy: How you want the logs to be partitioned. Possible values 'hour' and 'day'(Default).
  • consistency: The consistency of the insert query (default: quorum).
  • name: Name of the transport.

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

  • contactPoints: 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.

License

Distributed under the MIT license.

Something went wrong with that request. Please try again.