node.js - 为猫鼬正确打印正确的 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
是否可以在日志中删除?
解决方案
推荐阅读
- amqp - Esper AMQPSource 未收到事件
- gtk3 - 如何摆脱标题栏添加到基本操作系统中的非 gtk 应用程序
- android - aapt2 错误:检查日志以获取详细信息
- javascript - Ember - 初始加载时 hasMany 关系中没有数据
- python - Scala 案例类的 Python 等价物
- django - 如何在 CreateAPIVIew 的响应中插入数据
- php - 数据库 PDO(PHP) 上的数组值
- angular - 为什么我会在角度 6 中得到 StaticInjectorError。这意味着什么
- php - 在 PHP 上读取附加到 *.dbf 文件的 *.fpt 文件的数据
- python - Google App Engine - Python - Flask - oauth2client - “无效请求状态”错误