public static void Logging(Exception exception) { try { _logger.Debug(exception.Message); } catch (Exception _exception) { MessageBoxOperation.MessageBoxError("Loglama Yapılamadı. " + _exception.Message); } }
public static void tryCatch(Action Action) { try { Action.Invoke(); } catch (Exception exception) { MessageBoxOperation.MessageBoxError(exception.Message); Logging(exception); } }