ConsoleLoggerExtensions.AddConsoleFormatter メソッド

定義

オーバーロード

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

カスタム コンソール ロガー フォーマッタを追加します。

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder, Action<TOptions>)

指定したオプションを使用して構成するカスタム コンソール ロガー フォーマッタを追加します。

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

ソース:
ConsoleLoggerExtensions.cs
ソース:
ConsoleLoggerExtensions.cs
ソース:
ConsoleLoggerExtensions.cs

カスタム コンソール ロガー フォーマッタを追加します。

public:
generic <typename TFormatter, typename TOptions>
 where TFormatter : Microsoft::Extensions::Logging::Console::ConsoleFormatter where TOptions : Microsoft::Extensions::Logging::Console::ConsoleFormatterOptions[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsoleFormatter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsoleFormatter<TFormatter,TOptions> (this Microsoft.Extensions.Logging.ILoggingBuilder builder) where TFormatter : Microsoft.Extensions.Logging.Console.ConsoleFormatter where TOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions;
static member AddConsoleFormatter : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'Formatter :> Microsoft.Extensions.Logging.Console.ConsoleFormatter and 'Options :> Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions)
<Extension()>
Public Function AddConsoleFormatter(Of TFormatter As ConsoleFormatter, TOptions As ConsoleFormatter) (builder As ILoggingBuilder) As ILoggingBuilder

型パラメーター

TFormatter

カスタム コンソール ロガー フォーマッタ。

TOptions

構成オプション。

パラメーター

builder
ILoggingBuilder

使用する現在のログ ビルダー インスタンス。

戻り値

追加の呼び出しをチェーンできるようにするための現在のログ ビルダー インスタンス。

適用対象

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder, Action<TOptions>)

ソース:
ConsoleLoggerExtensions.cs
ソース:
ConsoleLoggerExtensions.cs
ソース:
ConsoleLoggerExtensions.cs

指定したオプションを使用して構成するカスタム コンソール ロガー フォーマッタを追加します。

public:
generic <typename TFormatter, typename TOptions>
 where TFormatter : Microsoft::Extensions::Logging::Console::ConsoleFormatter where TOptions : Microsoft::Extensions::Logging::Console::ConsoleFormatterOptions[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsoleFormatter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<TOptions> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsoleFormatter<TFormatter,TOptions> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<TOptions> configure) where TFormatter : Microsoft.Extensions.Logging.Console.ConsoleFormatter where TOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions;
static member AddConsoleFormatter : Microsoft.Extensions.Logging.ILoggingBuilder * Action<'Options (requires 'Options :> Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions)> -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'Formatter :> Microsoft.Extensions.Logging.Console.ConsoleFormatter and 'Options :> Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions)
<Extension()>
Public Function AddConsoleFormatter(Of TFormatter As ConsoleFormatter, TOptions As ConsoleFormatter) (builder As ILoggingBuilder, configure As Action(Of TOptions)) As ILoggingBuilder

型パラメーター

TFormatter

カスタム コンソール ロガー フォーマッタ。

TOptions

構成オプション。

パラメーター

builder
ILoggingBuilder

使用する現在のログ ビルダー インスタンス。

configure
Action<TOptions>

カスタム フォーマッタ TFormatterTOptions を構成するデリゲート。

戻り値

追加の呼び出しをチェーンできるようにするための現在のログ ビルダー インスタンス。

適用対象