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

            DataStatistic?.Send(new DataStatisticItem()
            {
                StatisticType = DataStatisticType.Crash, Data = ex
            });
            LogSave?.Save(ex);
        }
Exemplo n.º 3
0
 public static void Statistics(DataStatisticItem item)
 {
     SetConsole(item?.ToString() + "");
     DataStatistic?.Send(item);
 }