59 writes to LoggingFields
HttpLogging.Sample (1)
Startup.cs (1)
16logging.LoggingFields = HttpLoggingFields.All;
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
45o.LoggingFields |= HttpLoggingFields.Duration;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\AcceptanceTests.cs (6)
166x.LoggingFields |= HttpLoggingFields.ResponseBody; 226x.LoggingFields |= HttpLoggingFields.RequestBody; 282x.LoggingFields = HttpLoggingFields.All; 600x.LoggingFields |= HttpLoggingFields.RequestBody | HttpLoggingFields.ResponseBody; 634static services => services.AddHttpLogging(static x => x.LoggingFields &= ~HttpLoggingFields.ResponseBody) 726o.LoggingFields = HttpLoggingFields.None;
Microsoft.AspNetCore.HttpLogging.Tests (51)
HttpLoggingMiddlewareTests.cs (51)
104options.CurrentValue.LoggingFields = HttpLoggingFields.None; 148options.CurrentValue.LoggingFields = HttpLoggingFields.Request; 180options.CurrentValue.LoggingFields = HttpLoggingFields.RequestProperties; 212options.CurrentValue.LoggingFields = HttpLoggingFields.RequestHeaders; 293options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 311options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 342options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 370options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 398options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 435options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 471options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 496options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 529options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 564options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 602options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 640options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 679options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 715options.CurrentValue.LoggingFields = HttpLoggingFields.All; 733options.CurrentValue.LoggingFields = HttpLoggingFields.None; 760options.CurrentValue.LoggingFields = HttpLoggingFields.All; 788options.CurrentValue.LoggingFields = HttpLoggingFields.All; 837options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 861options.CurrentValue.LoggingFields = HttpLoggingFields.Duration; 883options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 907options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 933options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 957options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 981options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1001options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1026options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1046options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1067options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1088options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 1126options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 1163options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1183options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 1198options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1241options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1302options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1345options.CurrentValue.LoggingFields = HttpLoggingFields.All ^ HttpLoggingFields.ResponsePropertiesAndHeaders; 1391options.CurrentValue.LoggingFields = HttpLoggingFields.ResponsePropertiesAndHeaders; 1426options.CurrentValue.LoggingFields = loggingFields; 1463options.CurrentValue.LoggingFields = loggingFields; 1504options.CurrentValue.LoggingFields = fields; 1573options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1613options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1641options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1669options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1697options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1914services.AddHttpLogging(o => o.LoggingFields = HttpLoggingFields.All); 2017o.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)
59var loggingFields = loggingAttribute?.LoggingFields ?? options.LoggingFields;