Condividi tramite


LoggingServiceCollectionExtensions.AddLogging Metodo

Definizione

Overload

AddLogging(IServiceCollection)

Aggiunge servizi di registrazione all'oggetto IServiceCollection specificato.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Aggiunge servizi di registrazione all'oggetto IServiceCollection specificato.

AddLogging(IServiceCollection)

Origine:
LoggingServiceCollectionExtensions.cs
Origine:
LoggingServiceCollectionExtensions.cs
Origine:
LoggingServiceCollectionExtensions.cs

Aggiunge servizi di registrazione all'oggetto IServiceCollection specificato.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Origine:
LoggingServiceCollectionExtensions.cs
Origine:
LoggingServiceCollectionExtensions.cs
Origine:
LoggingServiceCollectionExtensions.cs

Aggiunge servizi di registrazione all'oggetto IServiceCollection specificato.

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

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

configure
Action<ILoggingBuilder>

Delegato di configurazione di ILoggingBuilder.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a