59 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 (6)
Logging\AcceptanceTests.cs (6)
166
x.
LoggingFields
|= HttpLoggingFields.ResponseBody;
226
x.
LoggingFields
|= HttpLoggingFields.RequestBody;
282
x.
LoggingFields
= HttpLoggingFields.All;
600
x.
LoggingFields
|= HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody;
634
static services => services.AddHttpLogging(static x => x.
LoggingFields
&= ~HttpLoggingFields.ResponseBody)
726
o.
LoggingFields
= HttpLoggingFields.None;
Microsoft.AspNetCore.HttpLogging.Tests (51)
HttpLoggingMiddlewareTests.cs (51)
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;
435
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
471
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
496
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
529
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
564
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
602
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
640
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
679
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
715
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
733
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
760
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
788
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
837
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
861
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Duration;
883
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
907
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
933
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
957
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
981
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1001
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1026
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1046
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1067
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1088
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1126
options.CurrentValue.
LoggingFields
= HttpLoggingFields.Response;
1163
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseBody;
1183
options.CurrentValue.
LoggingFields
= HttpLoggingFields.RequestBody;
1198
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseStatusCode;
1241
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1302
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponseHeaders;
1345
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All ^ HttpLoggingFields.ResponsePropertiesAndHeaders;
1391
options.CurrentValue.
LoggingFields
= HttpLoggingFields.ResponsePropertiesAndHeaders;
1426
options.CurrentValue.
LoggingFields
= loggingFields;
1463
options.CurrentValue.
LoggingFields
= loggingFields;
1504
options.CurrentValue.
LoggingFields
= fields;
1573
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1613
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1641
options.CurrentValue.
LoggingFields
= HttpLoggingFields.None;
1669
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1697
options.CurrentValue.
LoggingFields
= HttpLoggingFields.All;
1914
services.AddHttpLogging(o => o.
LoggingFields
= HttpLoggingFields.All);
2017
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
;