/// <summary>Appends bulk portion of logging events</summary>
 /// <param name="loggingEvents">Logging events.</param>
 protected override void AppendBulk(IList <LoggingEvent> loggingEvents)
 {
     try
     {
         RetryPolicy.CreateDecorrelatedJitterPolicy(
             this.MaxRetries,
             this.RetrySeedDelay,
             this.RetryMaxDelay,
             (exception, retryDelay) => this.ErrorHandler.Error($"Adding logEvents to {this.repository.GetType().Name} will be retried after {retryDelay}"))
         .Execute(() =>
         {
             var events = logEvent.CreateMany(loggingEvents, this.machineDataProvider, this.HandleError);
             this.repository.Add(events);
         });
     }
     catch (Exception ex)
     {
         this.HandleError("Failed to add logEvents to {0} in AppendBulk".With(this.repository.GetType().Name), ex);
     }
 }