LoggingServiceCollectionExtensions.AddLogging Yöntem

Tanım

Aşırı Yüklemeler

AddLogging(IServiceCollection)

Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.

AddLogging(IServiceCollection)

Kaynak:
LoggingServiceCollectionExtensions.cs
Kaynak:
LoggingServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Kaynak:
LoggingServiceCollectionExtensions.cs
Kaynak:
LoggingServiceCollectionExtensions.cs

Belirtilen IServiceCollectionöğesine günlük hizmetleri ekler.

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

Parametreler

services
IServiceCollection

IServiceCollection hizmet eklemek için.

configure
Action<ILoggingBuilder>

Yapılandırma ILoggingBuilder temsilcisi.

Döndürülenler

IServiceCollection böylece ek çağrılar zincirlenebilir.

Şunlara uygulanır