小程序
小游戏
企业微信
微信支付
扫描小程序码分享
小程序提供的log功能,没有任何日志产生,查询界面都为空
下载的案例运行后,也没有日志产生
一天前的日志也没有,这个日志应该是实时的吧
请帮忙看下,现在查错非常不方便,谢谢
appid : wx651541843f83ddac
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
let log wxgetRealtimeLogManager wxgetRealtimeLogManager()null
classLog
static debug()
if(!logreturn
loginfoapplylog arguments
static info()
static warn()
logwarnapplylog arguments
static error()
logerrorapplylog arguments
static setFilterMsgmsg// 从基础库2.7.3开始支持
if(!log ||logsetFilterMsgreturn
iftypeof msg !=='string'return
logsetFilterMsgmsg
static addFilterMsgmsg// 从基础库2.8.1开始支持
if(!log ||logaddFilterMsgreturn
logaddFilterMsgmsg
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
麻烦提供能复现问题的代码片段,看下你是怎么写的https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
let log wxgetRealtimeLogManager wxgetRealtimeLogManager()null
classLog
static debug()
if(!logreturn
loginfoapplylog arguments
static info()
if(!logreturn
loginfoapplylog arguments
static warn()
if(!logreturn
logwarnapplylog arguments
static error()
if(!logreturn
logerrorapplylog arguments
static setFilterMsgmsg// 从基础库2.7.3开始支持
if(!log ||logsetFilterMsgreturn
iftypeof msg !=='string'return
logsetFilterMsgmsg
static addFilterMsgmsg// 从基础库2.8.1开始支持
if(!log ||logaddFilterMsgreturn
iftypeof msg !=='string'return
logaddFilterMsgmsg
麻烦提供能复现问题的代码片段,看下你是怎么写的https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
class Log{
static debug() {
if (!log) return
log.info.apply(log, arguments)
}
static info() {
if (!log) return
log.info.apply(log, arguments)
}
static warn() {
if (!log) return
log.warn.apply(log, arguments)
}
static error() {
if (!log) return
log.error.apply(log, arguments)
}
static setFilterMsg(msg) { // 从基础库2.7.3开始支持
if (!log || !log.setFilterMsg) return
if (typeof msg !== 'string') return
log.setFilterMsg(msg)
}
static addFilterMsg(msg) { // 从基础库2.8.1开始支持
if (!log || !log.addFilterMsg) return
if (typeof msg !== 'string') return
log.addFilterMsg(msg)
}
const that = this
wx_log.error('error')