LoggingServiceCollectionExtensions.AddLogging Metoda

Definice

Přetížení

AddLogging(IServiceCollection)

Přidá protokolovací služby do zadaného IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Přidá protokolovací služby do zadaného IServiceCollection.

AddLogging(IServiceCollection)

Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs

Přidá protokolovací služby do zadaného 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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs
Zdroj:
LoggingServiceCollectionExtensions.cs

Přidá protokolovací služby do zadaného 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

Parametry

services
IServiceCollection

Chcete-li IServiceCollection přidat služby do.

configure
Action<ILoggingBuilder>

Konfigurační ILoggingBuilder delegát.

Návraty

Aby IServiceCollection bylo možné zřetězovat další volání.

Platí pro