实时日志没有产生?
发布于 6 年前 作者 leiluo 8880 次浏览 来自 问答

小程序提供的log功能,没有任何日志产生,查询界面都为空

下载的案例运行后,也没有日志产生

一天前的日志也没有,这个日志应该是实时的吧

请帮忙看下,现在查错非常不方便,谢谢

appid : wx651541843f83ddac

2 回复

麻烦提供能复现问题的代码片段,看下你是怎么写的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

回到顶部