ConsoleLoggerProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)
建立 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 的執行個體。
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 執行個體新增的記錄格式器。