LoggingServiceCollectionExtensions.AddLogging Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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)
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>)
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.