Eigenverft.WebLib.RequestTrafficLogging
1.0.0.7
See the version list below for details.
dotnet add package Eigenverft.WebLib.RequestTrafficLogging --version 1.0.0.7
NuGet\Install-Package Eigenverft.WebLib.RequestTrafficLogging -Version 1.0.0.7
<PackageReference Include="Eigenverft.WebLib.RequestTrafficLogging" Version="1.0.0.7" />
<PackageVersion Include="Eigenverft.WebLib.RequestTrafficLogging" Version="1.0.0.7" />
<PackageReference Include="Eigenverft.WebLib.RequestTrafficLogging" />
paket add Eigenverft.WebLib.RequestTrafficLogging --version 1.0.0.7
#r "nuget: Eigenverft.WebLib.RequestTrafficLogging, 1.0.0.7"
#:package Eigenverft.WebLib.RequestTrafficLogging@1.0.0.7
#addin nuget:?package=Eigenverft.WebLib.RequestTrafficLogging&version=1.0.0.7
#tool nuget:?package=Eigenverft.WebLib.RequestTrafficLogging&version=1.0.0.7
Eigenverft.WebLib.RequestTrafficLogging
ASP.NET Core request traffic logging middleware and HTTP logging field configuration with sensitive value controls.
Request traffic logging preserves the original allowlisted behavior from Eigenverft.WebLib.Infrastructure by default. It produces one combined request/response record with completion status and bounded body capture.
The default record uses hierarchical property names in a stable diagnostic order:
- request:
Request.*,Request.Header.*, andRequest.Body.* - connection:
Connection.Remote.*,Connection.Local.*, and forwarded-IP information - identity and routing:
Identity.*andRouting.* - response:
Response.*,Response.Header.*, andResponse.Body.* - pipeline result:
Pipeline.Outcome,Pipeline.Aborted,Pipeline.DurationMs, andPipeline.ExceptionType
Pipeline.Outcome describes whether the middleware pipeline returned, faulted, or was aborted; it is not the HTTP success status. Response.Started is sampled when the record completes. Connection.ForwardedIpChain is rendered as a readable ->-separated chain.
The body text itself remains the framework-owned RequestBody or ResponseBody field. Its related WebLib metadata uses Request.Body.ContentType, Request.Body.DeclaredLength, Request.Body.Truncated and the corresponding Response.Body.* names. DeclaredLength is the HTTP Content-Length when known, not a byte counter invented by the logger.
For a deliberate full-header diagnostic session, opt in to raw header capture:
builder.Services.AddRequestTrafficLogging(options =>
{
options.Fields = RequestTrafficLoggingFields.All;
options.HeaderCaptureMode = HeaderCaptureMode.AllRaw;
});
AllRaw captures every incoming request and outgoing response header value, including previously unknown header names, bearer credentials and cookies. Multiple values are recorded individually as Request.Header.Name[0], Request.Header.Name[1], and similarly under Response.Header.*. The default AllowListed mode and SensitiveValueMode behavior remain unchanged. Raw mode requires the corresponding RequestHeaders or ResponseHeaders field flag and does not expand body limits or change middleware placement. Protect the resulting logs accordingly.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Eigenverft.WebLib.ClientNetwork (>= 1.0.0.4)
-
net8.0
- Eigenverft.WebLib.ClientNetwork (>= 1.0.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Introduced hierarchical traffic diagnostics fields as the default output contract.
- Groups fields under Request.*, Connection.*, Identity.*, Routing.*, Response.*, and Pipeline.*.
- Emits both allowlisted and raw headers under Request.Header.* and Response.Header.*.
- Renames body length metadata to *.Body.DeclaredLength to reflect Content-Length semantics.
- Orders the controlled fields from request input through response and final pipeline outcome.
- This is a breaking field-name change for log queries and dashboards; framework body text remains RequestBody/ResponseBody.
Previously clarified traffic diagnostics fields for flat log output.
- Renamed Outcome to PipelineOutcome and ResponseStarted to ResponseStartedAtCapture.
- Renders ForwardedIpChain as readable text instead of an array type name.
- These log-field changes require consumers of the previous field names to update their queries.
Previously added opt-in AllRaw request and response header capture for traffic diagnostics.
- Captures every header value, including unknown names and sensitive values, without framework redaction when enabled.
- Keeps the existing allowlisted, redacted behavior as the default.
- Preserves multiple values separately and respects the existing header field flags.