The bunyan tree
For developers, you must comply with the release procedure described in the changelog.
A current limitation of bunyan is that one cannot set the level of a logger and all its children at once.
bunyan-tree
provides this feature at the cost of being a slightly more verbose during log objects declarations.
In fact, level
is not the only method that can be applied recursively to a whole bunyan tree, recursive versions of all bunyan methods are available in the tree
attribute of a logger.
Install
npm install --save bunyan-tree
Usage
Here is a simple usage example:
main.js:
var someModule = ;var log = ; log; logtree; ;
someModule.js:
var log = ; log; module { log;};