export bunyan.safeCycles

master
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)
- 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.
For example:

View File

@ -917,3 +917,8 @@ module.exports.createLogger = function createLogger(options) {
};
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;