private void ProcessFlushException(List <Exception> exceptions) { if (exceptions.Count > 0) { ILogWriter retryLogger = WriterFactory.GetRetryWriter(); // 获取重试日志序列化器 if (retryLogger != null) { try { List <ExceptionInfo> list = (from x in exceptions select ExceptionInfo.Create(x)).ToList(); retryLogger.Write(list); } catch (Exception ex) { LogHelper.RaiseErrorEvent(ex); } } else { foreach (Exception ex in exceptions) { LogHelper.RaiseErrorEvent(ex); } } } }