다음을 통해 공유


FakeLoggerBuilderExtensions.AddFakeLogging Method

Definition

Overloads

AddFakeLogging(ILoggingBuilder)

Configures fake logging with default options.

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Configures fake logging.

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Configures fake logging.

AddFakeLogging(ILoggingBuilder)

Source:
FakeLoggerBuilderExtensions.cs

Configures fake logging with default options.

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

Parameters

builder
ILoggingBuilder

Logging builder.

Returns

Logging builder.

Applies to

AddFakeLogging(ILoggingBuilder, IConfigurationSection)

Source:
FakeLoggerBuilderExtensions.cs

Configures fake logging.

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

Parameters

builder
ILoggingBuilder

Logging builder.

section
IConfigurationSection

Configuration section that contains FakeLogCollectorOptions.

Returns

Logging builder.

Applies to

AddFakeLogging(ILoggingBuilder, Action<FakeLogCollectorOptions>)

Source:
FakeLoggerBuilderExtensions.cs

Configures fake logging.

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

Parameters

builder
ILoggingBuilder

Logging builder.

configure
Action<FakeLogCollectorOptions>

Logging configuration options.

Returns

Logging builder.

Applies to