node-bunyan-lite/test/safe-json-stringify-1.js

11 lines
267 B
JavaScript
Raw Permalink Normal View History

var bunyan = require('../lib/bunyan');
var log = bunyan.createLogger({
name: 'safe-json-stringify-1'
});
var obj = {};
obj.__defineGetter__('boom',
function () { throw new Error('__defineGetter__ ouch!'); });
log.info({obj: obj}, 'using __defineGetter__');