Bunyan Socket

  Bundle up all of your bunyan log messages by streaming them to one
bunyan-server.
  https://github.com/oleics/node-bunyan-socket


Global Install:

  npm install -g bunyan-socket


Start the server on commandline:

  bunyan-server


Make sure to have bunyan-socket installed in your node-project-directory too:

  cd path/to/project
  npm install bunyan-socket


Create a logger that streams to that server in a js-file:

  var log = require('bunyan-socket')('MyLogger')
  log.info('hooray')
  var subLog = log.child({component:'MySubLogger'})
  subLog.info('hooray')

Create as many loggers in as many js-files as you want, they all
stream to one server.


Show the stream of log messages on commandline:

  bunyan-listener


To make this stream of JSON data readable:

  npm install -g bunyan
  bunyan-listener | bunyan


https://github.com/oleics/node-bunyan-socket

For me this is very useful. :-)

As always, feedback is welcome.

And (lots of) Kudos to bunyan itself: https://github.com/trentm/node-bunyan

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to