Name: js-handler/node_modules/restify/node_modules/bunyan/examples/unstringifyable.js 
1:
// See how bunyan behaves with an un-stringify-able object.
2:
var Logger = require('../lib/bunyan');
3:
 
4:
var log = new Logger({src: true, name: 'foo'});
5:
 
6:
// Make a circular object (cannot be JSON-ified).
7:
var myobj = {
8:
    foo: 'bar'
9:
};
10:
myobj.myobj = myobj;
11:
 
12:
log.info({obj: myobj}, 'hi there');   // <--- here