6 instantiations of HttpLoggingOptions
Microsoft.AspNetCore.HttpLogging.Tests (6)
HttpLoggingMiddlewareTests.cs (1)
1970
var options = new
HttpLoggingOptions
();
HttpLoggingOptionsTests.cs (5)
11
var options = new
HttpLoggingOptions
();
25
var options = new
HttpLoggingOptions
();
37
var options = new
HttpLoggingOptions
();
49
var options = new
HttpLoggingOptions
();
57
var 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)
23
private readonly IOptionsMonitor<
HttpLoggingOptions
> _options;
26
public HttpLoggingMiddleware(RequestDelegate next, IOptionsMonitor<
HttpLoggingOptions
> options, ILogger<HttpLoggingMiddleware> logger,
57
var
options = _options.CurrentValue;
70
private async Task InvokeInternal(HttpContext context,
HttpLoggingOptions
options,
308
public static void LogResponseHeadersSync(HttpLoggingInterceptorContext logContext,
HttpLoggingOptions
options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
318
public static async ValueTask LogResponseHeadersAsync(HttpLoggingInterceptorContext logContext,
HttpLoggingOptions
options, IHttpLoggingInterceptor[] interceptors, ILogger logger)
328
private 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>
35
public 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)
19
private readonly
HttpLoggingOptions
_options;
29
HttpLoggingOptions
options,
UpgradeFeatureLoggingDecorator.cs (2)
13
private readonly
HttpLoggingOptions
_options;
19
public UpgradeFeatureLoggingDecorator(IHttpUpgradeFeature innerUpgradeFeature, HttpLoggingInterceptorContext logContext,
HttpLoggingOptions
options,
Microsoft.AspNetCore.HttpLogging.Tests (9)
HttpLoggingMiddlewareTests.cs (4)
1968
private IOptionsMonitor<
HttpLoggingOptions
> CreateOptionsAccessor()
1970
var
options = new HttpLoggingOptions();
1971
var optionsAccessor = Mock.Of<IOptionsMonitor<
HttpLoggingOptions
>>(o => o.CurrentValue == options);
1976
IOptionsMonitor<
HttpLoggingOptions
> options = null,
HttpLoggingOptionsTests.cs (5)
11
var
options = new HttpLoggingOptions();
25
var
options = new HttpLoggingOptions();
37
var
options = new HttpLoggingOptions();
49
var
options = new HttpLoggingOptions();
57
var
options = new HttpLoggingOptions();