bunyan-yal-server

extensible log server for bunyan (via bunyan-axon)

bunyan-yal-server

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

$ npm install bunyan-yal-server

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 are simply functions that accept the server instance, so you can listen on "message" events and do whatever you like.

License

MIT