HttpClientLoggingServiceCollectionExtensions Klass

Definition

Tillägg för att registrera utökade HTTP-klientloggningsfunktioner.

public ref class HttpClientLoggingServiceCollectionExtensions abstract sealed
public static class HttpClientLoggingServiceCollectionExtensions
type HttpClientLoggingServiceCollectionExtensions = class
Public Module HttpClientLoggingServiceCollectionExtensions
Arv
HttpClientLoggingServiceCollectionExtensions

Metoder

Name Description
AddExtendedHttpClientLogging(IServiceCollection, Action<LoggingOptions>)

Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory.

AddExtendedHttpClientLogging(IServiceCollection, IConfigurationSection)

Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory.

AddExtendedHttpClientLogging(IServiceCollection)

Lägger till en IHttpClientAsyncLogger för att generera loggar för utgående begäranden för alla HTTP-klienter som skapats med IHttpClientFactory.

AddHttpClientLogEnricher<T>(IServiceCollection)

Lägger till en berikande instans av T för IServiceCollection att berika HttpClient loggar.

Gäller för