次の方法で共有


LoggingServiceCollectionExtensions.AddLogging メソッド

定義

オーバーロード

AddLogging(IServiceCollection)

指定の IServiceCollection にログ サービスを追加します。

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

指定の IServiceCollection にログ サービスを追加します。

AddLogging(IServiceCollection)

ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs

指定の IServiceCollection にログ サービスを追加します。

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

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs
ソース:
LoggingServiceCollectionExtensions.cs

指定の IServiceCollection にログ サービスを追加します。

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

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollection

configure
Action<ILoggingBuilder>

ILoggingBuilder 構成デリゲート。

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollection

適用対象