Partager via


FakeLoggerBuilderExtensions.AddFakeLogging Méthode

Définition

Surcharges

AddFakeLogging(ILoggingBuilder)

Configure la fausse journalisation avec les options par défaut.

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Configure la fausse journalisation.

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Configure la fausse journalisation.

AddFakeLogging(ILoggingBuilder)

Source:
FakeLoggerBuilderExtensions.cs
Source:
FakeLoggerBuilderExtensions.cs

Configure la fausse journalisation avec les options par défaut.

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

Paramètres

builder
ILoggingBuilder

Générateur de journalisation.

Retours

Journalisation builder.

S’applique à

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Source:
FakeLoggerBuilderExtensions.cs
Source:
FakeLoggerBuilderExtensions.cs

Configure la fausse journalisation.

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

Paramètres

builder
ILoggingBuilder

Générateur de journalisation.

section
IConfigurationSection

Section de configuration qui contient FakeLogCollectorOptions.

Retours

Journalisation builder.

S’applique à

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Source:
FakeLoggerBuilderExtensions.cs
Source:
FakeLoggerBuilderExtensions.cs

Configure la fausse journalisation.

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

Paramètres

builder
ILoggingBuilder

Générateur de journalisation.

configure
Action<FakeLogCollectorOptions>

Options de configuration de journalisation.

Retours

Journalisation builder.

S’applique à