次の方法で共有


HttpLoggingServiceExtensions クラス

定義

サービス内に HTTP ログ機能を登録する拡張メソッド。

public static class HttpLoggingServiceExtensions
type HttpLoggingServiceExtensions = class
Public Module HttpLoggingServiceExtensions
継承
HttpLoggingServiceExtensions

メソッド

AddHttpLogEnricher<T>(IServiceCollection)

のエンリッチャー インスタンス T を に追加して IServiceCollection 、受信 HTTP 要求ログをエンリッチします。

AddHttpLogging(IServiceCollection)

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

AddHttpLogging(IServiceCollection, Action<LoggingOptions>)

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

AddHttpLogging(IServiceCollection, IConfigurationSection)

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

UseHttpLoggingMiddleware(IApplicationBuilder)

受信 HTTP 要求ログ ミドルウェアを に IApplicationBuilder登録します。

適用対象