ConsoleLoggerProvider 构造函数

定义

重载

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

创建 ConsoleLoggerProvider 的实例。

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

创建 ConsoleLoggerProvider 的实例。

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 实例添加的日志格式化程序。

适用于