/// <summary>
 /// 
 /// </summary>
 public static void LogDeviceInfo()
 {
     using (var service = new LoggingService(ApplicationName))
     {
         service.Enable();
         service.WriteDiagnostics();
         service.Dispose();
     }
 }
 /// <summary>
 /// 记录错误日志
 /// </summary>
 /// <param name="message"></param>
 /// <param name="e"></param>
 /// <param name="isWriteDebug"></param>
 public static void Log(string message, Exception e, bool isWriteDebug)
 {
     using (var service = new LoggingService(ApplicationName))
     {
         service.Enable();
         service.Write(e.Message);
         service.Dispose();
     }
     if (isWriteDebug)
     {
         WriteDebug(message);
     }
 }