debugging打破与bunyan.createLogger – 节点v5.8发射

当我尝试使用bunyan启动node.js应用程序时,debugging器会停止,一旦我尝试创buildlogging器。 当我遍历代码时,我可以深入到createLogger并find它的中断点。 在node_modules / bunyan / lib中,debugging器在579行分离 –

assert.ok(isWritable(s.stream), '"stream" stream is not writable: ' + util.inspect(s.stream)); 

debugging器工作,直到我设置logging器,之后,它分离,我永远不会步进到logger.info行。

 import bunyan from 'bunyan'; const logger = bunyan.createLogger({ name: 'test' }); //debugger detaches logger.info('Hello logger'); // debugger will NOT step to this line 

winston不会发生这种情况。 我认为这与winston使用控制台和bunyan使用stream有关。

 import winston from 'winston'; winston.info('Simple log'); const bp = 'The debugger will stop on me'; 

有同样的问题,但解决了它通过更新到最新版本的节点(5.9.1)