@官方,此帖已经发出好几天了,希望能解决一下
实时日志自从接入之后一直显示:暂无日志,请重新搜索
参考的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);
}
}
...
Log.info('登录接口参数', param);
onError(e) {
Log.error('app.js onError', e);
}
倒是错误查询里面有打的log
@官方