export bunyan.safeCycles

This commit is contained in:
Trent Mick 2012-10-24 10:54:18 -07:00
parent 590eae18bf
commit 5f9cdc3e98
2 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,11 @@
## bunyan 0.14.6 (not yet released) ## bunyan 0.14.6 (not yet released)
- Export `bunyan.safeCycles()`. This may be useful for custom `type == "raw"`
streams that may do JSON stringification of log records themselves. Usage:
var str = JSON.stringify(rec, bunyan.safeCycles());
- [issue #49] Allow a `log.child()` to specify the level of inherited streams. - [issue #49] Allow a `log.child()` to specify the level of inherited streams.
For example: For example:

View file

@ -917,3 +917,8 @@ module.exports.createLogger = function createLogger(options) {
}; };
module.exports.RingBuffer = RingBuffer; module.exports.RingBuffer = RingBuffer;
// Useful for custom `type == "raw"` streams that may do JSON stringification
// of log records themselves. Usage:
// var str = JSON.stringify(rec, bunyan.safeCycles());
module.exports.safeCycles = safeCycles;