Прочитај на енглеском

Делите путем


HttpClientLoggingServiceCollectionExtensions Class

Definition

Extensions to register extended HTTP client logging features.

C#
public static class HttpClientLoggingServiceCollectionExtensions
Inheritance
HttpClientLoggingServiceCollectionExtensions

Methods

AddExtendedHttpClientLogging(IServiceCollection, Action<LoggingOptions>)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for all HTTP clients created with IHttpClientFactory.

AddExtendedHttpClientLogging(IServiceCollection, IConfigurationSection)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for all HTTP clients created with IHttpClientFactory.

AddExtendedHttpClientLogging(IServiceCollection)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for all HTTP clients created with IHttpClientFactory.

AddHttpClientLogEnricher<T>(IServiceCollection)

Adds an enricher instance of T to the IServiceCollection to enrich HttpClient logs.

Applies to

Производ Верзије
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)