- 需求的场景描述(希望解决的问题)
在云函数
exports.main = async (event, context) => {
}
中,想打印event的内容,应该如何做?
- 希望提供的能力
看了云端管理的日志,没有我console的东西啊?
返回结果:
{"data":[{"ADC":"8*12-bit","Comparator":"-","Data Flash":"Configurable","Flash":"18K","I/O":"18","I2C":"1","INT":"2","ISP ROM":"0-4K","ISP/ICP/IAP":"ISP,ICP,IAP","PWM":"6*16-bit","Package":"TSSOP20/ QFN20","Part No":"N76E003","SPI":"1","SRAM":"1K","Special Function":"1T 8051, 16 MHz internal RC, KBI, on-chip debugger","Timer":"4*16-bit","UART":"2","_id":"5c02389d9b5556d0ef6c8d35"}],"errMsg":"collection.get:ok"}
日志:
2018-12-29T06:30:14.196Z 333514f2-0b33-11e9-a4d8-5254005d5fdb { paras: '0',
part: '8051',
userInfo:
{ appId: 'wx105ea8361b1eaa46',
openId: 'o64cB5RdezEeOu9eZv6RmGl4Wej8' } }
END RequestId: 333514f2-0b33-11e9-a4d8-5254005d5fdb
Report RequestId: 333514f2-0b33-11e9-a4d8-5254005d5fdb Duration:99.053ms Memory:256MB MaxMemoryUsed:1.76562MB