Bunyan-Promise
Bunyan-Promise consumes promises and outputs bunyan logs showing their progress, their resolution or rejection, and makes state dumps showing all promises that have not settled.
How?
Bunyan-Promise can consume any type of promises, but for the sake of this example we'll use one from Kriskowal's Q Library.
var q = ;var BunyanPromiseLogger = ;var logger = name: 'test-logger';var defer = qdefer;logger; // sometime in the future resolve that promise;
Example output
This is pretty printed by piping the output through the bunyan cli.
node app.js | bunyan -o short
Alternatively you can use the bunyan grunt task if you're using grunt
npm install --save-dev grunt-bunyangrunt bunyan task1 task2 ...