Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
winston-powered logging daemon
JavaScript
branch: master

Merge pull request #1 from flatiron/add-union

[fix] Add union to package.json
latest commit 8b8d4470b9
@chjj chjj authored
Failed to load latest commit information.
bin [fix] correct dependencies. improve bin/winstond.
lib [api] bulk of the code.
test [test] tests.
usage [api] first commit.
.gitignore [api] first commit.
LICENSE [dist doc] Added LICENSE. Updated package.json and README.
README.md [fix] typo.
package.json

README.md

winstond

A logging server built on top of winston, capable of receiving, querying, and streaming logs.

Services

Each winstond server can utilize up to 3 different services, which leverage the main capabilities of a winston transport.

  • collect - log collection
  • query - querying logs
  • stream - streaming logs

Usage

Creating a winstond server

var winstond = require('winstond');

var server = winstond.nssocket.createServer({
  services: ['collect', 'query', 'stream'],
  port: 9003
});

server.add(winstond.transports.File, {
  filename: __dirname + '/foo.log'
});

server.listen();

Communicating with a winstond server

var winston = require('winston');

winston.add(require('winston-nssocket').Nssocket, {
  host: 'localhost',
  port: 9003
});

winston.log('info', 'Hello world!', {
  foo: 'bar'
});

winston.stream().on('log', function(log) {
  console.log(log);
});

winston.query({ start: 10 }, function(err, results) {
  if (err) throw err;
  console.log(results);
});

Backends

winstond supports http and nssocket backends.

Installation

$ npm install winstond -g

Author: Nodejitsu Inc.

Contributors: Christopher Jeffrey, Charlie Robbins

License: MIT

Something went wrong with that request. Please try again.