Compartilhar via


FakeLoggerBuilderExtensions.AddFakeLogging Método

Definição

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)

Origem:
FakeLoggerBuilderExtensions.cs
Origem:
FakeLoggerBuilderExtensions.cs

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)

Origem:
FakeLoggerBuilderExtensions.cs
Origem:
FakeLoggerBuilderExtensions.cs

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>)

Origem:
FakeLoggerBuilderExtensions.cs
Origem:
FakeLoggerBuilderExtensions.cs

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.

Aplica-se a