Sdílet prostřednictvím


FakeLoggerBuilderExtensions.AddFakeLogging Metoda

Definice

Přetížení

AddFakeLogging(ILoggingBuilder)

Nakonfiguruje falešné protokolování s výchozími možnostmi.

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Nakonfiguruje falešné protokolování.

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Nakonfiguruje falešné protokolování.

AddFakeLogging(ILoggingBuilder)

Zdroj:
FakeLoggerBuilderExtensions.cs
Zdroj:
FakeLoggerBuilderExtensions.cs

Nakonfiguruje falešné protokolování s výchozími možnostmi.

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

Parametry

builder
ILoggingBuilder

Tvůrce protokolování.

Návraty

Protokolování builder.

Platí pro

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Zdroj:
FakeLoggerBuilderExtensions.cs
Zdroj:
FakeLoggerBuilderExtensions.cs

Nakonfiguruje falešné protokolování.

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

Parametry

builder
ILoggingBuilder

Tvůrce protokolování.

section
IConfigurationSection

Oddíl konfigurace, který obsahuje FakeLogCollectorOptions.

Návraty

Protokolování builder.

Platí pro

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Zdroj:
FakeLoggerBuilderExtensions.cs
Zdroj:
FakeLoggerBuilderExtensions.cs

Nakonfiguruje falešné protokolování.

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

Parametry

builder
ILoggingBuilder

Tvůrce protokolování.

configure
Action<FakeLogCollectorOptions>

Možnosti konfigurace protokolování

Návraty

Protokolování builder.

Platí pro