HttpLoggingServiceExtensions.AddHttpLogging メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddHttpLogging(IServiceCollection) |
にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。 |
AddHttpLogging(IServiceCollection, IConfigurationSection) |
にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。 |
AddHttpLogging(IServiceCollection, Action<LoggingOptions>) |
にログインする受信 HTTP 要求のコンポーネントを IServiceCollection追加します。 |
AddHttpLogging(IServiceCollection)
にログインする受信 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。
例外
services
は null
です。
適用対象
AddHttpLogging(IServiceCollection, IConfigurationSection)
にログインする受信 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>)
にログインする受信 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
です。