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)
104
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
148
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Request;
180
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestProperties;
212
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestHeaders;
293
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
311
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
342
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
370
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
398
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
438
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
475
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
511
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
536
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
569
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
604
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
642
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
680
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
719
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
755
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
773
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
800
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
828
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
877
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
901
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Duration;
923
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
947
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
973
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
997
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1021
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1041
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1066
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1086
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1107
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1128
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1166
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1203
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1229
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1249
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
1264
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
1307
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1368
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1411
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All ^ HttpLoggingFields.ResponsePropertiesAndHeaders;
1457
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponsePropertiesAndHeaders;
1492
options.CurrentValue.
LoggingFields
= loggingFields;
1529
options.CurrentValue.
LoggingFields
= loggingFields;
1570
options.CurrentValue.
LoggingFields
= fields;
1639
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1682
options.CurrentValue.
LoggingFields
= fields;
1745
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1773
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
1801
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1829
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
2046
services.AddHttpLogging(o => o.
LoggingFields
= HttpLoggingFields.All);
2149
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)
59
var loggingFields = loggingAttribute?.LoggingFields ?? options.
LoggingFields
;