addDebugLog method
debug 添加一条日志
Implementation
void addDebugLog(String debugLog, String debugStack) {
if (!jhConfig.recordEnabled) return;
if (_debugLogAll.length >= jhConfig.debugRecord &&
_debugLogAll.length != 0) {
// 清除多余日志
_debugLogAll.removeRange(
0, _debugLogAll.length - jhConfig.debugRecord + 1);
}
_debugLogAll.add({
'debugLog': debugLog,
'debugStack': debugStack,
});
_debugCtr.sink.add(_debugLogAll);
}