public void StageError(EventId eventId, Exception exception, string message)
        {
            LoggingRecord record = new LoggingRecord(LogLevel.Error, eventId, exception, message);

            Logs.Add(record);
            GroupedErrors.Add(record);
        }
        public void StageWarning(EventId eventId, Exception exception, string message)
        {
            LoggingRecord record = new LoggingRecord(LogLevel.Warning, eventId, exception, message);

            Logs.Add(record);
            GroupedWarnings.Add(record);
        }