Condividi tramite


HttpClientLoggingExtensions Class

Definition

Extension methods to register HTTP client logging feature.

public ref class HttpClientLoggingExtensions abstract sealed
public static class HttpClientLoggingExtensions
type HttpClientLoggingExtensions = class
Public Module HttpClientLoggingExtensions
Inheritance
HttpClientLoggingExtensions

Methods

AddDefaultHttpClientLogging(IServiceCollection, Action<LoggingOptions>)

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

AddDefaultHttpClientLogging(IServiceCollection, IConfigurationSection)

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

AddDefaultHttpClientLogging(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.

AddHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for a named HttpClient.

AddHttpClientLogging(IHttpClientBuilder, IConfigurationSection)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for a named HttpClient.

AddHttpClientLogging(IHttpClientBuilder)

Adds an IHttpClientAsyncLogger to emit logs for outgoing requests for a named HttpClient.

Applies to