Udostępnij za pośrednictwem


LoggingServiceCollectionExtensions.AddLogging Metoda

Definicja

Przeciążenia

AddLogging(IServiceCollection)

Dodaje usługi rejestrowania do określonego IServiceCollectionelementu .

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Dodaje usługi rejestrowania do określonego IServiceCollectionelementu .

AddLogging(IServiceCollection)

Źródło:
LoggingServiceCollectionExtensions.cs
Źródło:
LoggingServiceCollectionExtensions.cs
Źródło:
LoggingServiceCollectionExtensions.cs

Dodaje usługi rejestrowania do określonego IServiceCollectionelementu .

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

Parametry

services
IServiceCollection

Element do dodawania IServiceCollection usług.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Źródło:
LoggingServiceCollectionExtensions.cs
Źródło:
LoggingServiceCollectionExtensions.cs
Źródło:
LoggingServiceCollectionExtensions.cs

Dodaje usługi rejestrowania do określonego IServiceCollectionelementu .

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

Parametry

services
IServiceCollection

Element do dodawania IServiceCollection usług.

configure
Action<ILoggingBuilder>

Delegat ILoggingBuilder konfiguracji.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy