json-logger
v1.0.1
Published
Super simple newline delimited printer (to stdout) similar to debug module
Downloads
6
Readme
json-logger
Super simple logger (similar to debug) prints newline delimited json to stdout.
Usage
var log = require('json-logger')({
user: 'foobar'
});
log('critical error', { message: 'You failed.' });
// will log
// { type; 'critical error', message: 'you failed', user: 'foobar' }
See the examples folder for usage the output is tested there as well...