收藏
回答

wx.getLogManager,level:1,参数无效,过滤不到生命周期函数的日志?

 wx.getLogManager({ level: 1 })

已经设置 level为1的级别,但是拉下来的日志,还是有包含生命周期函数的日志,比如:

2023-11-17 15:48:12 [log] wx.writeBLECharacteristicValue api invoke

2023-11-17 15:48:12 [log] wx.writeBLECharacteristicValue success callback with msg writeBLECharacteristicValue:ok

2023-11-17 15:48:12 [log] wx.writeBLECharacteristicValue api invoke

2023-11-17 15:48:12 [log] wx.writeBLECharacteristicValue success callback with msg writeBLECharacteristicValue:ok

2023-11-17 15:48:12 [log] wx.writeBLECharacteristicValue api invoke

请问怎么设置,才能过滤掉这些log级别的日志,显示我需要的info,warn级别等日志?

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容