public async Task AddDomainEvent(EventLog eventLog) { try { await _eventLogRepository.Add(eventLog); } catch (Exception exception) { _logger.Error(exception, "Unable to save domain event into repository for correlation {CorrelationId}", eventLog.CorrelationId); _logger.Error("Event Log {EventLog} with correlation {CorrelationId}", eventLog, eventLog.CorrelationId); throw; } }
public void AuditFailure(IBusinessEvent businessEvent) { _logger.Error(businessEvent); }