Class RequestTrafficLoggingServiceCollectionExtensions
Provides service-registration helpers for WebLib request traffic logging.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RequestTrafficLogging
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public static class RequestTrafficLoggingServiceCollectionExtensions
Methods
| Edit this page View SourceAddRequestTrafficLogging(IServiceCollection, Action<RequestTrafficLoggingOptions>?)
Adds framework HTTP capture plus WebLib request-completion semantics for one structured traffic record per request.
Declaration
public static IServiceCollection AddRequestTrafficLogging(this IServiceCollection services, Action<RequestTrafficLoggingOptions>? configure = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The service collection to configure. |
| Action<RequestTrafficLoggingOptions> | configure | Optional startup-time traffic logging configuration. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The original service collection. |
Remarks
Request traffic logging intentionally owns the global ASP.NET Core HttpLoggingOptions
used by this pipeline: it post-configures combined logging, the baseline logging fields, body limits,
and header allowlists so that the interceptor can select the final per-request capture. Existing
AddHttpLogging(...) configuration is therefore normalized to the A4 traffic-logging contract.
Configure the shared capture through RequestTrafficLoggingOptions when A4 is enabled.