error handling使用Winston不返回响应
我在Node.js应用程序中使用winstonerror handling
var logConfig={ level:'info', timestamp:true, colorize:true, handleExceptions=true }; logger = new (winston.Logger)({ transports: [ new (winston.transports.Console)(logConfig) ] }); } logger.exitOnError=false;
除了日志logging之外,我想使用winston的error handlingfunction。 这是一个快速的应用程序
我可以看到Winston正确处理错误,打印堆栈跟踪,并防止服务器崩溃,但响应永远不会回到浏览器。 有没有一种方法来指定这种行为?
谢谢