internal void PopulateProperties(SeqRequestLogsFeature feature)
        {
            if (!string.IsNullOrWhiteSpace(apiKey))
            {
                feature.ApiKey = apiKey;
            }

            if (!string.IsNullOrWhiteSpace(url))
            {
                feature.SeqUrl = url;
            }

            if (appendProperties != null)
            {
                feature.AppendProperties = appendProperties;
            }

            if (enabled.HasValue)
            {
                feature.Enabled = enabled.Value;
            }

            if (enableErrorTracking.HasValue)
            {
                feature.EnableErrorTracking = enableErrorTracking.Value;
            }

            if (enableRequestBodyTracking.HasValue)
            {
                feature.EnableRequestBodyTracking = enableRequestBodyTracking.Value;
            }

            if (enableResponseTracking.HasValue)
            {
                feature.EnableResponseTracking = enableResponseTracking.Value;
            }

            if (enableSessionTracking.HasValue)
            {
                feature.EnableSessionTracking = enableSessionTracking.Value;
            }

            if (!excludeRequestDtoTypes.IsNullOrEmpty())
            {
                feature.ExcludeRequestDtoTypes = excludeRequestDtoTypes;
            }

            if (!hideRequestBodyForRequestDtoTypes.IsNullOrEmpty())
            {
                feature.HideRequestBodyForRequestDtoTypes = hideRequestBodyForRequestDtoTypes;
            }

            if (!requiredRoles.IsNullOrEmpty())
            {
                feature.RequiredRoles = requiredRoles;
            }

            if (logger != null)
            {
                feature.Logger = logger;
            }

            if (rawLogEvent != null)
            {
                feature.RawEventLogger = rawLogEvent;
            }
        }
 public SeqRequestLogger(SeqRequestLogsFeature feature)
 {
     this.feature = feature;
     eventsUri    = $"{feature.SeqUrl}/api/events/raw";
 }
 public SeqRequestLogger(SeqRequestLogsFeature feature)
 {
     this.feature = feature;
     eventsUri = $"{feature.SeqUrl}/api/events/raw";
 }