Commit 1c64a123b7dbac665b3152cd2e3ef01c2b0cd6e6

Authored by vking
1 parent b7f66922

console 改为实时日志

Showing 1 changed file with 8 additions and 0 deletions
@@ -16,6 +16,14 @@ Array.prototype.remove = function(val) { @@ -16,6 +16,14 @@ Array.prototype.remove = function(val) {
16 this.splice(index, 1); 16 this.splice(index, 1);
17 } 17 }
18 }; 18 };
  19 +if (wx.getRealtimeLogManager) {
  20 + const logger = wx.getRealtimeLogManager()
  21 + let consoleLog=console.log
  22 + console.log=function () {
  23 + logger.info(...arguments);
  24 + consoleLog(...arguments)
  25 + }
  26 +}
19 App({ 27 App({
20 openid:"", 28 openid:"",
21 system:{}, 29 system:{},