Teilen über


FakeLoggerServiceCollectionExtensions.AddFakeLogging Methode

Definition

Überlädt

AddFakeLogging(IServiceCollection)

Konfiguriert die gefälschte Protokollierung mit Standardoptionen.

AddFakeLogging(IServiceCollection, IConfigurationSection)

Konfiguriert die gefälschte Protokollierung.

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Konfiguriert die gefälschte Protokollierung.

AddFakeLogging(IServiceCollection)

Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs

Konfiguriert die gefälschte Protokollierung mit Standardoptionen.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection) As IServiceCollection

Parameter

services
IServiceCollection

Dienstsammlung.

Gibt zurück

Der Wert von services.

Gilt für:

AddFakeLogging(IServiceCollection, IConfigurationSection)

Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs

Konfiguriert die gefälschte Protokollierung.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parameter

services
IServiceCollection

Dienstsammlung.

section
IConfigurationSection

Konfigurationsabschnitt, der enthält FakeLogCollectorOptions.

Gibt zurück

Der Wert von services.

Gilt für:

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs
Quelle:
FakeLoggerServiceCollectionExtensions.cs

Konfiguriert die gefälschte Protokollierung.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::Testing::FakeLogCollectorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> configure);
static member AddFakeLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.Testing.FakeLogCollectorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeLogging (services As IServiceCollection, configure As Action(Of FakeLogCollectorOptions)) As IServiceCollection

Parameter

services
IServiceCollection

Dienstsammlung.

configure
Action<FakeLogCollectorOptions>

Protokollierungskonfigurationsoptionen.

Gibt zurück

Der Wert von services.

Gilt für: