다음을 통해 공유


LoggingServiceCollectionExtensions.AddLogging 메서드

정의

오버로드

AddLogging(IServiceCollection)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

지정된 IServiceCollection에 로깅 서비스를 추가합니다.

AddLogging(IServiceCollection)

Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs

지정된 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입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs
Source:
LoggingServiceCollectionExtensions.cs

지정된 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입니다.

configure
Action<ILoggingBuilder>

ILoggingBuilder 구성 대리자입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상