示例#1
0
 public static void DisableLogger()
 {
     try
     {
         ComDriverLogger.Disable();
     }
     catch (ComDriveExceptions ex)
     {
         throw;
     }
     catch (Exception ex)
     {
         string exceptionText = ex.GetType().ToString() + ": " + ex.Message + "\n\n" + ex.StackTrace;
         ComDriverLogger.LogExceptions(DateTime.Now, exceptionText);
         throw;
     }
 }
示例#2
0
 public static void LoadLoggerSettingsFromConfig()
 {
     ComDriverLogger.Disable();
 }