Example #1
0
 public static void EnableLogger(LogTypesConfig logTypesConfig)
 {
     try
     {
         ComDriverLogger.Enable(logTypesConfig);
     }
     catch (ComDriveExceptions ex)
     {
         throw;
     }
     catch (Exception ex)
     {
         string exceptionText = ex.GetType().ToString() + ": " + ex.Message + "\n\n" + ex.StackTrace;
         ComDriverLogger.LogExceptions(DateTime.Now, exceptionText);
         throw;
     }
 }