addLog method
Implementation
void addLog(int type, String msg) {
if (ApmKitManager.instance.getKit(ApmKitName.KIT_LOG) != null) {
final LogBean log = LogBean(type, msg);
final LogKit? kit = ApmKitManager.instance.getKit(ApmKitName.KIT_LOG);
kit?.save(log);
if (type != LogBean.TYPE_ERROR || LogPageState._showError) {
listener?.call(log);
}
}
}