node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

bunyan-yal-server

bunyan-yal-server

Extensible log server for Bunyan + bunyan-axon forked from YAL.

Installation

$ npm install bunyan-yal-server

Example

Running bunyan-yal-server with a simple stdout plugin:

var Server = require('bunyan-yal-server');
var server = new Server;
 
server.bind('tcp://localhost:5000');
server.use(stdout);
 
function stdout(server){
  server.on('message', function(msg){
    console.log(msg);
  });
};

Plugins

Plugins are simply functions that accept the server instance, so you can listen on "message" events and do whatever you like.

License

MIT