Ағылшын тілінде оқу

Бөлісу құралы:


HttpClientBuilderExtensions.AddDefaultLogger(IHttpClientBuilder) Method

Definition

Adds back the default logging for a named HttpClient, if it was removed previously by calling RemoveAllLoggers(IHttpClientBuilder).

C#
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddDefaultLogger (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder);

Parameters

Returns

An IHttpClientBuilder that can be used to configure the client.

Applies to

Өнім Нұсқалар
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)