Mocha: Mocha output readability is worse when using Bunyan or other logging facilities

Created on 21 Oct 2015  路  4Comments  路  Source: mochajs/mocha

Is there a good way to marry a logging module like Bunyan with Mocha? I find that the output from Mocha becomes _harder_ to read, not easier, when piping through Bunyan - but I do want Bunyan because then I can ignore higher levels of logging output that don't matter in my tests.

Is there a good solution? Will Mocha start using a logging module?

question reporter

Most helpful comment

Hi,

I've write a reproter that provide a pretty output of bunyan logs when you run mocha:
http://stephanechretien.blogspot.fr/2016/06/nodejs-bunyan-mocha-glup.html
https://www.npmjs.com/package/mocha-pretty-bunyan-nyan

All 4 comments

You have the reporters for that and it is possible to write a new one who perfectly fit your needs.

https://mochajs.org/#reporters [default reporters]
https://www.npmjs.com/search?q=mocha+reporter

thanks that helps

Hi,

I've write a reproter that provide a pretty output of bunyan logs when you run mocha:
http://stephanechretien.blogspot.fr/2016/06/nodejs-bunyan-mocha-glup.html
https://www.npmjs.com/package/mocha-pretty-bunyan-nyan

Question appears answered per the OP, closing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seelikes picture seelikes  路  3Comments

robertherber picture robertherber  路  3Comments

Aarbel picture Aarbel  路  3Comments

CADBOT picture CADBOT  路  3Comments

niftylettuce picture niftylettuce  路  3Comments