New Huajishe Check ChaoXing
This commit is contained in:
19
HuajisheCheckChaoXing/utils/log.js
Normal file
19
HuajisheCheckChaoXing/utils/log.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const log = wx.getRealtimeLogManager();
|
||||
|
||||
module.exports = {
|
||||
debug() {
|
||||
if (!log) return
|
||||
log.debug.apply(log, arguments)
|
||||
console.info(...arguments)
|
||||
},
|
||||
info() {
|
||||
if (!log) return
|
||||
log.info.apply(log, arguments)
|
||||
console.info(...arguments)
|
||||
},
|
||||
error() {
|
||||
if (!log) return
|
||||
log.error.apply(log, arguments)
|
||||
console.error(...arguments)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user