实时日志自从接入之后就没有显示,wxdf0383bc8f1eef61?

发布于 6 年前作者 nayang1916 次浏览最后编辑 6 年前来自 issues

@官方,此帖已经发出好几天了,希望能解决一下

实时日志自从接入之后一直显示:暂无日志,请重新搜索

参考的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);
}
1 回复
bxie
bxie1 楼4 年前

倒是错误查询里面有打的log

@官方