LoggingServiceCollectionExtensions.AddLogging Méthode

Définition

Surcharges

AddLogging(IServiceCollection)

Ajoute des services de journalisation au IServiceCollection spécifié.Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Ajoute des services de journalisation au IServiceCollection spécifié.Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection)

Ajoute des services de journalisation au IServiceCollection spécifié.Adds logging services to the specified 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.The IServiceCollection to add services to.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.The IServiceCollection so that additional calls can be chained.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Ajoute des services de journalisation au IServiceCollection spécifié.Adds logging services to the specified 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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.The IServiceCollection to add services to.

configure
Action<ILoggingBuilder>

Délégué de configuration ILoggingBuilder.The ILoggingBuilder configuration delegate.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.The IServiceCollection so that additional calls can be chained.

S’applique à