Socket
Book a DemoInstallSign in
Socket

bunyan-yal-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-yal-server

extensible log server for bunyan (via bunyan-axon)

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

yal

FAQs

Package last updated on 01 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts