23 references to AddParameter
HttpLogging.Sample (5)
SampleHttpLoggingInterceptor.cs (5)
43logContext.AddParameter(header.Key, "RedactedHeader"); // TODO: Redact header value 51logContext.AddParameter(header.Key, "RedactedHeader"); // TODO: Redact header value 75logContext.AddParameter("ResponseEnrichment", "Stuff"); 80logContext.AddParameter("RequestEnrichment", "Stuff"); 85logContext.AddParameter(nameof(logContext.HttpContext.Request.Path), "RedactedPath");
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Logging\HttpLoggingRedactionInterceptor.cs (3)
81logContext.AddParameter(HttpLoggingTagNames.Host, context.Request.Host.Value); 113logContext.AddParameter(routeParams[i].Name, routeParams[i].Value); 124logContext.AddParameter(nameof(request.Path), path);
Microsoft.AspNetCore.HttpLogging (13)
HttpLoggingMiddleware.cs (10)
114logContext.AddParameter(nameof(request.Protocol), request.Protocol); 119logContext.AddParameter(nameof(request.Method), request.Method); 124logContext.AddParameter(nameof(request.Scheme), request.Scheme); 129logContext.AddParameter(nameof(request.PathBase), request.PathBase); 130logContext.AddParameter(nameof(request.Path), request.Path); 135logContext.AddParameter(nameof(request.QueryString), request.QueryString.Value); 233logContext.AddParameter(nameof(HttpLoggingFields.Duration), logContext.GetDuration()); 335logContext.AddParameter(nameof(response.StatusCode), response.StatusCode); 359logContext.AddParameter(key, Redacted); 362logContext.AddParameter(key, value.ToString());
RequestBufferingStream.cs (2)
127logContext.AddParameter("RequestBody", GetString(_encoding)); 128logContext.AddParameter("RequestBodyStatus", GetStatus(showCompleted: true));
ResponseBufferingStream.cs (1)
191logContext.AddParameter("ResponseBody", GetString(_encoding!));
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
2104logContext.AddParameter("i0request", "v0"); 2110logContext.AddParameter("i0response", "v0");