ConsoleLoggerProvider 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)
- Source:
- ConsoleLoggerProvider.cs
- Source:
- 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>)
- Source:
- ConsoleLoggerProvider.cs
- Source:
- 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 实例添加的日志格式化程序。