다음을 통해 공유


HttpLoggingServicesExtensions.AddHttpLogging 메서드

정의

오버로드

AddHttpLogging(IServiceCollection)

HTTP 로깅 서비스를 추가합니다.

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

HTTP 로깅 서비스를 추가합니다.

AddHttpLogging(IServiceCollection)

HTTP 로깅 서비스를 추가합니다.

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.

반환

체인을 위한 원래 서비스 컬렉션입니다.

적용 대상

AddHttpLogging(IServiceCollection, Action<HttpLoggingOptions>)

Source:
HttpLoggingServicesExtensions.cs

HTTP 로깅 서비스를 추가합니다.

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

매개 변수

services
IServiceCollection

서비스를 추가하기 위한 IServiceCollection.

configureOptions
Action<HttpLoggingOptions>

HttpLoggingOptions구성하는 대리자입니다.

반환

체인을 위한 원래 서비스 컬렉션입니다.

적용 대상