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正确处理错误,打印堆栈跟踪,并防止服务器崩溃,但响应永远不会回到浏览器。 有没有一种方法来指定这种行为?
谢谢
- POST http:// localhost:3000/404(Not Found)(已更新)
- 使用Node.js将httpredirect到https
- meteor:我如何stream和parsing一个大文件的asynchronous节点function?
- err_connection_refused使用socket.IO
- mongoose更新嵌套值
- 未知的协议错误,同时使用请求api(node.js)
- 获取错误:未知的提供者:socketProvider < – socket < – LogCtrl
- 访问数据通过Ajax Post发送到NodeJS服务器
- 用Mocha和ChaitestingExpress和护照OAuth2