6 instantiations of HttpLoggingOptions
Microsoft.AspNetCore.HttpLogging.Tests (6)
HttpLoggingMiddlewareTests.cs (1)
1970var options = new HttpLoggingOptions();
HttpLoggingOptionsTests.cs (5)
11var options = new HttpLoggingOptions(); 25var options = new HttpLoggingOptions(); 37var options = new HttpLoggingOptions(); 49var options = new HttpLoggingOptions(); 57var options = new HttpLoggingOptions();
42 references to HttpLoggingOptions
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
28/// This will enable <see cref="HttpLoggingOptions.CombineLogs"/> and <see cref="HttpLoggingFields.Duration"/> by default.
Microsoft.AspNetCore.HttpLogging (32)
HttpLoggingEndpointConventionBuilderExtensions.cs (4)
19/// <param name="requestBodyLogLimit">Sets the <see cref="HttpLoggingOptions.RequestBodyLogLimit"/> for this endpoint. A value of <c>-1</c> means use the default setting in <see cref="HttpLoggingOptions.RequestBodyLogLimit"/>.</param> 20/// <param name="responseBodyLogLimit">Sets the <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/> for this endpoint. A value of <c>-1</c> means use the default setting in <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/>.</param>
HttpLoggingFields.cs (8)
86/// the <see cref="HttpLoggingOptions.RequestHeaders"/>. 102/// the <see cref="HttpLoggingOptions.ResponseHeaders"/>. 127/// the entire request body up to <see cref="HttpLoggingOptions.RequestBodyLogLimit"/>. 134/// the entire response body up to <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/>. 174/// the entire request body up to <see cref="HttpLoggingOptions.RequestBodyLogLimit"/>. 186/// the entire response body up to <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/>. 194/// the entire request and response body up to the <see cref="HttpLoggingOptions.RequestBodyLogLimit"/> 195/// and <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/>.
HttpLoggingInterceptorContext.cs (5)
13/// Settings will be pre-initialized with the relevant values from <see cref="HttpLoggingOptions" /> and updated with endpoint specific 43/// This is pre-populated with the value from <see cref="HttpLoggingOptions.LoggingFields"/>, 53/// This is pre-populated with the value from <see cref="HttpLoggingOptions.RequestBodyLogLimit"/>, 63/// This is pre-populated with the value from <see cref="HttpLoggingOptions.ResponseBodyLogLimit"/>, 79/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled, the parameters will be logged as part of the combined log.
HttpLoggingMiddleware.cs (7)
23private readonly IOptionsMonitor<HttpLoggingOptions> _options; 26public HttpLoggingMiddleware(RequestDelegate next, IOptionsMonitor<HttpLoggingOptions> options, ILogger<HttpLoggingMiddleware> logger, 57var options = _options.CurrentValue; 70private async Task InvokeInternal(HttpContext context, HttpLoggingOptions options, 308public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 318public static async ValueTask LogResponseHeadersAsync(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, IHttpLoggingInterceptor[] interceptors, ILogger logger) 328private static void LogResponseHeadersCore(HttpLoggingInterceptorContext logContext, HttpLoggingOptions options, ILogger logger)
HttpLoggingServicesExtensions.cs (2)
33/// <param name="configureOptions">A delegate to configure the <see cref="HttpLoggingOptions"/>.</param> 35public static IServiceCollection AddHttpLogging(this IServiceCollection services, Action<HttpLoggingOptions> configureOptions)
IHttpLoggingInterceptor.cs (2)
19/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response 32/// If <see cref="HttpLoggingOptions.CombineLogs"/> is enabled then <see cref="HttpLoggingInterceptorContext.Parameters"/> will carry over from the request to response
ResponseBufferingStream.cs (2)
19private readonly HttpLoggingOptions _options; 29HttpLoggingOptions options,
UpgradeFeatureLoggingDecorator.cs (2)
13private readonly HttpLoggingOptions _options; 19public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature, HttpLoggingInterceptorContext logContext, HttpLoggingOptions options,
Microsoft.AspNetCore.HttpLogging.Tests (9)
HttpLoggingMiddlewareTests.cs (4)
1968private IOptionsMonitor<HttpLoggingOptions> CreateOptionsAccessor() 1970var options = new HttpLoggingOptions(); 1971var optionsAccessor = Mock.Of<IOptionsMonitor<HttpLoggingOptions>>(o => o.CurrentValue == options); 1976IOptionsMonitor<HttpLoggingOptions> options = null,
HttpLoggingOptionsTests.cs (5)
11var options = new HttpLoggingOptions(); 25var options = new HttpLoggingOptions(); 37var options = new HttpLoggingOptions(); 49var options = new HttpLoggingOptions(); 57var options = new HttpLoggingOptions();