我把官网的例子下载下来了
var log = wx.getRealtimeLogManager ? wx.getRealtimeLogManager() : null
module.exports = {
info() {
if (!log) return
log.info.apply(log, arguments)
},
warn() {
if (!log) return
log.warn.apply(log, arguments)
},
error() {
if (!log) return
log.error.apply(log, arguments)
},
setFilterMsg(msg) { // 从基础库2.7.3开始支持
if (!log || !log.setFilterMsg) return
if (typeof msg !== 'string') return
log.setFilterMsg(msg)
}
}
然后换了appid调用,在时时日志中啥都查看不到
你好,请参考文档看下是否已正确接入:https://developers.weixin.qq.com/miniprogram/dev/framework/realtimelog/