appid:wxdf0383bc8f1eef61
这是我第三次发同样的帖子了,
第一次是周一在运营相关问题里面发的贴子https://developers.weixin.qq.com/community/develop/doc/0006006d074118bf65b96927c5b000
第二次:https://developers.weixin.qq.com/community/develop/doc/0002620ca548402fb2b975d8f51400
没人理我,我只好再发一次,多有打扰。
参考的https://developers.weixin.qq.com/miniprogram/dev/framework/realtimelog
实时日志自从接入之后一直显示:暂无日志,请重新搜索
import wepy from 'wepy';
/**
* 实时日志
* Created by liangxinwei on 2019-12-26 14:13.
*/
constlog = wepy.getRealtimeLogManager ? wepy.getRealtimeLogManager() : null;
export default class Log {
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) {
if (!log || !log.setFilterMsg) return;
if (typeof msg !== 'string') return;
log.setFilterMsg(msg);
}
static addFilterMsg(msg) {
if (!log || !log.addFilterMsg) return;
if (typeof msg !== 'string') return;
log.addFilterMsg(msg);
}
}
...
// login.wpy
Log.info('登录接口参数', param);
// app.wpy
onError(e) {
Log.error('app.js onError', e);
}
这里跟进下:麻烦提供能上报时候的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
https://developers.weixin.qq.com/s/sZ3HXnmn78e6
@官方