LoggingServiceCollectionExtensions.AddLogging Método

Definição

Sobrecargas

AddLogging(IServiceCollection)

Adiciona serviços de log ao IServiceCollection especificado.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Adiciona serviços de log ao IServiceCollection especificado.

AddLogging(IServiceCollection)

Origem:
LoggingServiceCollectionExtensions.cs
Origem:
LoggingServiceCollectionExtensions.cs

Adiciona serviços de log ao IServiceCollection especificado.

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Origem:
LoggingServiceCollectionExtensions.cs
Origem:
LoggingServiceCollectionExtensions.cs

Adiciona serviços de log ao IServiceCollection especificado.

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

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar serviços.

configure
Action<ILoggingBuilder>

O delegado de configuração do ILoggingBuilder.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a