FakeLoggerBuilderExtensions.AddFakeLogging Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddFakeLogging(ILoggingBuilder) |
Configura el registro falso con opciones predeterminadas. |
AddFakeLogging(ILoggingBuilder, IConfigurationSection) |
Configura el registro falso. |
AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>) |
Configura el registro falso. |
AddFakeLogging(ILoggingBuilder)
Configura el registro falso con opciones predeterminadas.
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
Generador de registro.
Devoluciones
Registro builder
de .
Se aplica a
AddFakeLogging(ILoggingBuilder, IConfigurationSection)
Configura el registro 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
Generador de registro.
- section
- IConfigurationSection
Sección de configuración que contiene FakeLogCollectorOptions.
Devoluciones
Registro builder
de .
Se aplica a
AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)
Configura el registro 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
Generador de registro.
- configure
- Action<FakeLogCollectorOptions>
Opciones de configuración de registro.
Devoluciones
Registro builder
de .