/// <summary> /// 数据统计 /// </summary> public static void Statistics(DataStatisticType type, object msg = null) { SetConsole(msg + ""); DataStatistic?.Send(new DataStatisticItem() { StatisticType = type, Data = msg }); }
/// <summary> /// 记录 崩溃 /// 崩溃数据会被上传 /// </summary> public static void Crash(Exception ex) { SetConsole(ex.StackTrace); DataStatistic?.Send(new DataStatisticItem() { StatisticType = DataStatisticType.Crash, Data = ex }); LogSave?.Save(ex); }
public static void Statistics(DataStatisticItem item) { SetConsole(item?.ToString() + ""); DataStatistic?.Send(item); }