次の方法で共有


HttpLoggingServiceExtensions.AddHttpLogging メソッド

定義

オーバーロード

AddHttpLogging(IServiceCollection)

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

AddHttpLogging(IServiceCollection, IConfigurationSection)

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

AddHttpLogging(IServiceCollection)

ソース:
HttpLoggingServiceExtensions.cs

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection) As IServiceCollection

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

例外

servicesnull です。

適用対象

AddHttpLogging(IServiceCollection, IConfigurationSection)

ソース:
HttpLoggingServiceExtensions.cs

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

section
IConfigurationSection

バインド LoggingOptions する構成セクション。

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

例外

services または section のいずれかが null です。

適用対象

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

ソース:
HttpLoggingServiceExtensions.cs

にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpLogging(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Telemetry.LoggingOptions> configure);
static member AddHttpLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Telemetry.LoggingOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpLogging (services As IServiceCollection, configure As Action(Of LoggingOptions)) As IServiceCollection

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

configure
Action<LoggingOptions>

LoggingOptions を構成するための Action<T>

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

例外

services または configure のいずれかが null です。

適用対象