FakeLoggerServiceCollectionExtensions.AddFakeLogging メソッド

定義

オーバーロード

AddFakeLogging(IServiceCollection)

既定のオプションを使用して偽のログ記録を構成します。

AddFakeLogging(IServiceCollection, IConfigurationSection)

偽のログ記録を構成します。

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

偽のログ記録を構成します。

AddFakeLogging(IServiceCollection)

ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs

既定のオプションを使用して偽のログ記録を構成します。

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

パラメーター

services
IServiceCollection

サービス コレクション。

戻り値

services の値。

適用対象

AddFakeLogging(IServiceCollection, IConfigurationSection)

ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs

偽のログ記録を構成します。

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

パラメーター

services
IServiceCollection

サービス コレクション。

section
IConfigurationSection

を含む FakeLogCollectorOptions構成セクション。

戻り値

services の値。

適用対象

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs
ソース:
FakeLoggerServiceCollectionExtensions.cs

偽のログ記録を構成します。

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

パラメーター

services
IServiceCollection

サービス コレクション。

configure
Action<FakeLogCollectorOptions>

ログ構成オプション。

戻り値

services の値。

適用対象