Aracılığıyla paylaş


ConsoleLoggerExtensions.AddConsoleFormatter Yöntem

Tanım

Aşırı Yüklemeler

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

Özel bir konsol günlükçü biçimlendiricisi ekler.

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

Belirtilen seçeneklerle yapılandırılacak özel bir konsol günlükçü biçimlendiricisi ekler.

AddConsoleFormatter<TFormatter,TOptions>(ILoggingBuilder)

Özel bir konsol günlükçü biçimlendiricisi ekler.

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

Tür Parametreleri

TFormatter

Özel konsol günlükçü biçimlendiricisi.

TOptions

Yapılandırma seçenekleri.

Parametreler

builder
ILoggingBuilder

Kullanılacak geçerli günlük oluşturucu örneği.

Döndürülenler

ILoggingBuilder

Ek çağrıların zincirlenebilmesi için geçerli günlük oluşturucu örneği.

Şunlara uygulanır

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

Belirtilen seçeneklerle yapılandırılacak özel bir konsol günlükçü biçimlendiricisi ekler.

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

Tür Parametreleri

TFormatter

Özel konsol günlükçü biçimlendiricisi.

TOptions

Yapılandırma seçenekleri.

Parametreler

builder
ILoggingBuilder

Kullanılacak geçerli günlük oluşturucu örneği.

configure
Action<TOptions>

Özel biçimlendirici TFormatteriçin yapılandırılan TOptions bir temsilci.

Döndürülenler

ILoggingBuilder

Ek çağrıların zincirlenebilmesi için geçerli günlük oluşturucu örneği.

Şunlara uygulanır