LoggingServiceCollectionExtensions.AddLogging Méthode

Définition

Surcharges

AddLogging(IServiceCollection)

Ajoute des services de journalisation au IServiceCollection spécifié.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Ajoute des services de journalisation au IServiceCollection spécifié.

AddLogging(IServiceCollection)

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

Ajoute des services de journalisation au IServiceCollection spécifié.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

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

Ajoute des services de journalisation au IServiceCollection spécifié.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

configure
Action<ILoggingBuilder>

Délégué de configuration ILoggingBuilder.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à