log.io-server-parser
Able to receive and parse messages from Log.io harvester.
Last updated 6 years ago by kerphi .
ISC · Original npm · Tarball · package.json
$ cnpm install log.io-server-parser 
SYNC missed versions from official npm registry.

log.io-server-parser

Able to receive and parse messages from Log.io harvester.

Installation

npm install log.io-server-parser

Usage

var LogIoServerParser = require('log.io-server-parser');

var server = new LogIoServerParser({
  port: 28777
});

server.listen(function () {
  console.log('listening');
});

server.on('+node', function (node, streams) {
  console.log('+node', node, streams);
});

server.on('-node', function (node) {
  console.log('-node', node);
});

server.on('+log', function (stream, node, type, log) {
  console.log('+log', stream, node, type, log);
});

server.on('unknown', function (data) {
  console.log('unknown', data);
});

// receive all event as raw data
server.on('raw', function (data) {
  console.log(data);
});

Current Tags

  • 0.1.2                                ...           latest (6 years ago)

3 Versions

  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |