Bunyan-lite is a simple and fast JSON logging library for node.js services that contains zero dependencies:
var bunyan = require('bunyan-lite');
var log = bunyan.createLogger({name: "myapp"});
log.info("hi");
and a bunyan
CLI tool for nicely viewing those logs:
Manifesto: Server logs should be structured. JSON's a good format. Let's do
that. A log record is one line of JSON.stringify
'd output. Let's also
specify some common names for the requisite and common fields for a log
record (see below).
Due to many of the fallbacks and issues on how github is being managed, all code and repository has been moved over to https://git.nfp.is/TheThing/node-bunyan-lite