Freigeben über


FakeLoggerBuilderExtensions.AddFakeLogging Methode

Definition

Überlädt

AddFakeLogging(ILoggingBuilder)

Konfiguriert die gefälschte Protokollierung mit Standardoptionen.

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Konfiguriert die gefälschte Protokollierung.

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Konfiguriert die gefälschte Protokollierung.

AddFakeLogging(ILoggingBuilder)

Quelle:
FakeLoggerBuilderExtensions.cs
Quelle:
FakeLoggerBuilderExtensions.cs

Konfiguriert die gefälschte Protokollierung mit Standardoptionen.

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

Parameter

builder
ILoggingBuilder

Protokollierungs-Generator.

Gibt zurück

Protokollierung buildervon .

Gilt für:

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Quelle:
FakeLoggerBuilderExtensions.cs
Quelle:
FakeLoggerBuilderExtensions.cs

Konfiguriert die gefälschte Protokollierung.

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

Parameter

builder
ILoggingBuilder

Protokollierungs-Generator.

section
IConfigurationSection

Konfigurationsabschnitt, der enthält FakeLogCollectorOptions.

Gibt zurück

Protokollierung buildervon .

Gilt für:

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Quelle:
FakeLoggerBuilderExtensions.cs
Quelle:
FakeLoggerBuilderExtensions.cs

Konfiguriert die gefälschte Protokollierung.

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

Parameter

builder
ILoggingBuilder

Protokollierungs-Generator.

configure
Action<FakeLogCollectorOptions>

Protokollierungskonfigurationsoptionen.

Gibt zurück

Protokollierung buildervon .

Gilt für: