FakeLoggerBuilderExtensions.AddFakeLogging 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
AddFakeLogging(ILoggingBuilder) |
Configura o log falso com opções padrão. |
AddFakeLogging(ILoggingBuilder, IConfigurationSection) |
Configura o registro em log falso. |
AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>) |
Configura o registro em log falso. |
AddFakeLogging(ILoggingBuilder)
Configura o log falso com opções padrão.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFakeLogging(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFakeLogging (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddFakeLogging : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFakeLogging (builder As ILoggingBuilder) As ILoggingBuilder
Parâmetros
- builder
- ILoggingBuilder
Construtor de registro em log.
Retornos
Registrando em log builder
.
Aplica-se a
AddFakeLogging(ILoggingBuilder, IConfigurationSection)
Configura o registro em log falso.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFakeLogging(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFakeLogging (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddFakeLogging : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFakeLogging (builder As ILoggingBuilder, section As IConfigurationSection) As ILoggingBuilder
Parâmetros
- builder
- ILoggingBuilder
Construtor de registro em log.
- section
- IConfigurationSection
Seção de configuração que contém FakeLogCollectorOptions.
Retornos
Registrando em log builder
.
Aplica-se a
AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)
Configura o registro em log falso.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFakeLogging(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Testing::FakeLogCollectorOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFakeLogging (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> configure);
static member AddFakeLogging : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFakeLogging (builder As ILoggingBuilder, configure As Action(Of FakeLogCollectorOptions)) As ILoggingBuilder
Parâmetros
- builder
- ILoggingBuilder
Construtor de registro em log.
- configure
- Action<FakeLogCollectorOptions>
Opções de configuração de registro em log.
Retornos
Registrando em log builder
.