63 writes to LoggingFields
HttpLogging.Sample (1)
Startup.cs (1)
16
logging.
LoggingFields
= HttpLoggingFields.All;
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
45
o.
LoggingFields
|= HttpLoggingFields.Duration;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Logging\AcceptanceTests.cs (7)
210
x.
LoggingFields
|= HttpLoggingFields.ResponseBody;
270
x.
LoggingFields
|= HttpLoggingFields.RequestBody;
323
x.
LoggingFields
|= HttpLoggingFields.RequestBody;
368
x.
LoggingFields
= HttpLoggingFields.All;
686
x.
LoggingFields
|= HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody;
720
static services => services.AddHttpLogging(static x => x.
LoggingFields
&= ~HttpLoggingFields.ResponseBody)
965
o.
LoggingFields
= HttpLoggingFields.None;
Microsoft.AspNetCore.HttpLogging.Tests (54)
HttpLoggingMiddlewareTests.cs (54)
121
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
165
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Request;
197
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestProperties;
229
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestHeaders;
310
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
328
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
359
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
387
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
415
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
455
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
492
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
528
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
553
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
586
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
621
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
659
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
697
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
736
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
772
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
790
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
817
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
845
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
894
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
918
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Duration;
940
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
964
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
990
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
1014
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1038
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1058
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1083
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1103
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1124
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1145
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1183
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1220
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1246
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1266
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
1281
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
1324
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1385
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1428
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All ^ HttpLoggingFields.ResponsePropertiesAndHeaders;
1474
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponsePropertiesAndHeaders;
1509
options.CurrentValue.
LoggingFields
= loggingFields;
1546
options.CurrentValue.
LoggingFields
= loggingFields;
1587
options.CurrentValue.
LoggingFields
= fields;
1656
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1699
options.CurrentValue.
LoggingFields
= fields;
1762
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1790
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
1818
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1846
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
2063
services.AddHttpLogging(o => o.
LoggingFields
= HttpLoggingFields.All);
2167
o.
LoggingFields
= defaultFields;
2 references to LoggingFields
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingInterceptorContext.cs (1)
43
/// This is pre-populated with the value from <see cref="HttpLoggingOptions.
LoggingFields
"/>,
HttpLoggingMiddleware.cs (1)
63
var loggingFields = loggingAttribute?.LoggingFields ?? options.
LoggingFields
;