/// <summary> /// Initialize a new instance of the <see cref="HttpLogging"/> class. /// </summary> /// <param name="next">A reference to the next OwinMiddleware object in the chain.</param> /// <param name="options">A reference to an <see cref="HttpLoggingOptions"/> class.</param> public HttpLogging(OwinMiddleware next, HttpLoggingOptions options) : base(next) { HttpLoggingStore = options.TrackingStore; if (!string.IsNullOrEmpty(options.TrackingIdPropertyName)) _trackingIdPropertyName = options.TrackingIdPropertyName; _maxRequestLength = options.MaximumRecordedRequestLength ?? _maxRequestLength; _maxResponseLength = options.MaximumRecordedResponseLength ?? _maxResponseLength; }
/// <summary> /// Initialize a new instance of the <see cref="HttpLogging"/> class. /// </summary> /// <param name="next">A reference to the next OwinMiddleware object in the chain.</param> /// <param name="options">A reference to an <see cref="HttpLoggingOptions"/> class.</param> public HttpLogging(OwinMiddleware next, HttpLoggingOptions options) : base(next) { HttpLoggingStore = options.TrackingStore; if (!string.IsNullOrEmpty(options.TrackingIdPropertyName)) { _trackingIdPropertyName = options.TrackingIdPropertyName; } _maxRequestLength = options.MaximumRecordedRequestLength ?? _maxRequestLength; _maxResponseLength = options.MaximumRecordedResponseLength ?? _maxResponseLength; }
public HttpLoggingProvider(IHttpResponseLogHandler responseHandler, IHttpRequestLogHandler requestHandler, IOptions <RaccoonLogHttpOptions> options, ILogger <HttpLoggingProvider> logger, IHttpLoggingStore store, IStoreQueue storeQueue) { _store = store; _options = options.Value; _responseHandler = responseHandler; _requestHandler = requestHandler; _logger = logger; _storeQueue = storeQueue; }
public HttpLoggingProvider(IHttpResponseLogHandler responseHandler, IHttpRequestLogHandler requestHandler, IOptions <RaccoonLogHttpOptions> options, ILoggerFactory loggerFactory, IHttpLoggingStore store) { _store = store; _options = options; _responseHandler = responseHandler; _requestHandler = requestHandler; _requestLogger = loggerFactory.CreateLogger <HttpRequest>(); _responseLogger = loggerFactory.CreateLogger <HttpResponse>(); }