首页 > 解决方案 > 为猫鼬正确打印正确的 aws cloudwatch

问题描述

我正在使用mongoose和使用mongoose.set('debug', true). 通过查询字符串在本地机器上打印正确,但 aws cloudwatch日志字符中有查询字符串utf-8。这是示例。

\u001b[0;36mMongoose:\u001b[0m promotions_user.findAndModify({ promo_id: \u001b[

我如何转换utf-8为简单的可查看日志以进行调试。

ANSI character是否可以在日志中删除?

标签: node.jsmongodbamazon-web-servicesmongoose

解决方案


推荐阅读