bunyan-axon

axon transport for bunyan logs

npm install bunyan-axon
6 downloads in the last week
12 downloads in the last month

Bunyan-Axon

Build Status

NPM

Axon transport for raw bunyan streams designed to work with bunyan-axon-server

Still WIP but "works on my machine certified". Open to pull requests and suggestions

Uses axon (2) push/pull sockets as transport for bunyan log messages.

Pretty much a bunyan orientated port of [yal][(https://github.com/segmentio/yal) which should go look at for a detailed explanation of why

For examples of use with a recieving server see test/test-basic.js.

Todo

  1. More/better tests
  2. benchmarks
  3. Some jazzy examples

Install

npm install bunyan-axon

Use

var bunyan = require('bunyan');
var Baxon = require('bunyan-axon');

var log = bunyan.createLogger({
  name: "testStream",
  streams:[
    {level:"info", type:"raw", stream: new Baxon("tcp://127.0.0.1:9010")}
  ]
})

API

var writeableStreamForBunyan = new Baxon(addrs);

Where addrs is string or(array of strings) in format accepted by axon e.g tcp://127.0.0.1:8124

License

MIT

npm loves you