export bunyan.safeCycles
This commit is contained in:
parent
590eae18bf
commit
5f9cdc3e98
2 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue