共用方式為


ConsoleLoggerProvider 建構函式

定義

多載

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

建立 ConsoleLoggerProvider 的執行個體。

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>, IEnumerable<ConsoleFormatter>)

建立 ConsoleLoggerProvider 的執行個體。

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

來源:
ConsoleLoggerProvider.cs
來源:
ConsoleLoggerProvider.cs

建立 ConsoleLoggerProvider 的執行個體。

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ options);
public ConsoleLoggerProvider (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> options);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (options As IOptionsMonitor(Of ConsoleLoggerOptions))

參數

options
IOptionsMonitor<ConsoleLoggerOptions>

用來建立 Microsoft.Extensions.Logging.Console.ConsoleLogger 執行個體的選項。

適用於

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>, IEnumerable<ConsoleFormatter>)

來源:
ConsoleLoggerProvider.cs
來源:
ConsoleLoggerProvider.cs

建立 ConsoleLoggerProvider 的執行個體。

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Options::IOptionsMonitor<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ options, System::Collections::Generic::IEnumerable<Microsoft::Extensions::Logging::Console::ConsoleFormatter ^> ^ formatters);
public ConsoleLoggerProvider (Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> options, System.Collections.Generic.IEnumerable<Microsoft.Extensions.Logging.Console.ConsoleFormatter>? formatters);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Options.IOptionsMonitor<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> * seq<Microsoft.Extensions.Logging.Console.ConsoleFormatter> -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (options As IOptionsMonitor(Of ConsoleLoggerOptions), formatters As IEnumerable(Of ConsoleFormatter))

參數

options
IOptionsMonitor<ConsoleLoggerOptions>

用來建立 Microsoft.Extensions.Logging.Console.ConsoleLogger 執行個體的選項。

formatters
IEnumerable<ConsoleFormatter>

針對 Microsoft.Extensions.Logging.Console.ConsoleLogger 執行個體新增的記錄格式器。

適用於