Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bunyan-yal-serverpublic

    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

    install

    npm i bunyan-yal-server

    Downloadsweekly downloads

    3

    version

    0.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar