1.0.1 • Published 10 years ago

json-logger v1.0.1

Weekly downloads
1
License
Apache2
Repository
github
Last release
10 years ago

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...