LoggingServiceCollectionExtensions.AddLogging 메서드

정의

오버로드

AddLogging(IServiceCollection)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.Adds logging services to the specified IServiceCollection.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add services to.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.Adds logging services to the specified IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configure);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection, configure As Action(Of ILoggingBuilder)) As IServiceCollection

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add services to.

configure
Action<ILoggingBuilder>

ILoggingBuilder 구성 대리자입니다.The ILoggingBuilder configuration delegate.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

적용 대상