Commit 314aa12e authored by XuYu's avatar XuYu
Browse files

feat: 新增 onLog 回调监听 sdk 内部详细日志,方便跟踪排查问题和进行业务分析

parent 8ee6c88a
......@@ -7,6 +7,7 @@ export interface BrtmCallback {
onLeaveRoom: () => void;
onMessageReceived: (key: string, content: string, userId: string) => void;
onBroadcastMessageReceived: (key: string, content: string) => void;
onLog: (logContent: string) => void;
// ***** 文档 & 白板 *****
onDocumentServiceEnable: (enable: boolean, userId: string) => void;
......
No preview for this file type
......@@ -248,6 +248,9 @@
+ ", pageId=" + pageChangeInfo.pageId);
this.updatePageLabel();
});
this.brtmInstance.on("onLog", (logContent) => {
console.log(logContent);
});
},
handleUninstallEvents() {
this.brtmInstance.off('*');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment