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; } }
public static void LoadLoggerSettingsFromConfig() { ComDriverLogger.Disable(); }