HttpClientLoggingHttpClientBuilderExtensions.AddExtendedHttpClientLogging Methode

Definition

Überlädt

AddExtendedHttpClientLogging(IHttpClientBuilder)

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection)

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>)

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

AddExtendedHttpClientLogging(IHttpClientBuilder)

Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder) As IHttpClientBuilder

Parameter

Gibt zurück

Der Wert von builder.

Ausnahmen

Das Argument builder ist null.

Hinweise

Alle anderen Protokollierungen werden entfernt, einschließlich der Standardprotokollierung, die über registriert wurde AddDefaultLogger(IHttpClientBuilder). Viele der von dieser Methode protokollierten Informationen (z. B. Bodys, Methoden, Host, Pfad und Dauer) werden dem strukturierten Protokoll als Anreicherungstags hinzugefügt. Stellen Sie sicher, dass Sie über eine Möglichkeit verfügen, strukturierte Protokolle anzuzeigen, um diese zusätzlichen Informationen anzuzeigen.

Gilt für:

AddExtendedHttpClientLogging(IHttpClientBuilder, IConfigurationSection)

Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, section As IConfigurationSection) As IHttpClientBuilder

Parameter

section
IConfigurationSection

Die , die IConfigurationSection zum Konfigurieren von LoggingOptionsverwendet werden soll.

Gibt zurück

Der Wert von builder.

Ausnahmen

Eines der Argumente ist null.

Hinweise

Alle anderen Protokollierungen werden entfernt, einschließlich der Standardprotokollierung, die über registriert wurde AddDefaultLogger(IHttpClientBuilder). Viele der von dieser Methode protokollierten Informationen (z. B. Bodys, Methoden, Host, Pfad und Dauer) werden dem strukturierten Protokoll als Anreicherungstags hinzugefügt. Stellen Sie sicher, dass Sie über eine Möglichkeit verfügen, strukturierte Protokolle anzuzeigen, um diese zusätzlichen Informationen anzuzeigen.

Gilt für:

AddExtendedHttpClientLogging(IHttpClientBuilder, Action<LoggingOptions>)

Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs
Quelle:
HttpClientLoggingHttpClientBuilderExtensions.cs

Fügt ein IHttpClientAsyncLogger hinzu, um Protokolle für ausgehende Anforderungen für einen namens HttpClientausgibt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddExtendedHttpClientLogging(Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ builder, Action<Microsoft::Extensions::Http::Logging::LoggingOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IHttpClientBuilder AddExtendedHttpClientLogging (this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder builder, Action<Microsoft.Extensions.Http.Logging.LoggingOptions> configure);
static member AddExtendedHttpClientLogging : Microsoft.Extensions.DependencyInjection.IHttpClientBuilder * Action<Microsoft.Extensions.Http.Logging.LoggingOptions> -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder
<Extension()>
Public Function AddExtendedHttpClientLogging (builder As IHttpClientBuilder, configure As Action(Of LoggingOptions)) As IHttpClientBuilder

Parameter

configure
Action<LoggingOptions>

Der Delegat, mit dem konfiguriert LoggingOptions werden soll.

Gibt zurück

Der Wert von builder.

Ausnahmen

Eines der Argumente ist null.

Hinweise

Alle anderen Protokollierungen werden entfernt, einschließlich der Standardprotokollierung, die über registriert wurde AddDefaultLogger(IHttpClientBuilder). Viele der von dieser Methode protokollierten Informationen (z. B. Bodys, Methoden, Host, Pfad und Dauer) werden dem strukturierten Protokoll als Anreicherungstags hinzugefügt. Stellen Sie sicher, dass Sie über eine Möglichkeit verfügen, strukturierte Protokolle anzuzeigen, um diese zusätzlichen Informationen anzuzeigen.

Gilt für: