2012-11-01 20:05:56 +00:00
|
|
|
|
|
|
|
// A helper script to log a few times. We attempt to NOT emit
|
|
|
|
// to stdout or stderr because this is used for dtrace testing
|
|
|
|
// and we don't want to mix output.
|
|
|
|
|
|
|
|
var bunyan = require('../lib/bunyan');
|
|
|
|
var log = bunyan.createLogger({
|
2013-03-29 00:42:32 +00:00
|
|
|
name: 'play',
|
|
|
|
serializers: bunyan.stdSerializers
|
2012-11-01 20:05:56 +00:00
|
|
|
});
|
|
|
|
log.debug({foo: 'bar'}, 'hi at debug')
|
|
|
|
log.trace('hi at trace')
|