ConsoleLoggerProvider Конструкторы

Определение

Перегрузки

ConsoleLoggerProvider(IConsoleLoggerSettings)
Является устаревшей.
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

Создает экземпляр класса ConsoleLoggerProvider.

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

Создает экземпляр класса ConsoleLoggerProvider.

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean)
Является устаревшей.
ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean, Boolean)
Является устаревшей.

ConsoleLoggerProvider(IConsoleLoggerSettings)

Внимание!

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options

public:
 ConsoleLoggerProvider(Microsoft::Extensions::Logging::Console::IConsoleLoggerSettings ^ settings);
public ConsoleLoggerProvider (Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options")]
public ConsoleLoggerProvider (Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (settings As IConsoleLoggerSettings)

Параметры

Атрибуты

Применяется к

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>

Параметры, с которыми необходимо создать экземпляры 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);
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>

Параметры, с которыми необходимо создать экземпляры ConsoleLogger.

formatters
IEnumerable<ConsoleFormatter>

Модули форматирования журнала, добавленные для экземпляров ConsoleLogger.

Применяется к

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean)

Внимание!

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.

public:
 ConsoleLoggerProvider(Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes);
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")]
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean)

Параметры

includeScopes
Boolean
Атрибуты

Применяется к

ConsoleLoggerProvider(Func<String,LogLevel,Boolean>, Boolean, Boolean)

Внимание!

This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.

public:
 ConsoleLoggerProvider(Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes, bool disableColors);
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes, bool disableColors);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")]
public ConsoleLoggerProvider (Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes, bool disableColors);
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is using LoggerFactory to configure filtering and ConsoleLoggerOptions to configure logging options.")>]
new Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider : Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool * bool -> Microsoft.Extensions.Logging.Console.ConsoleLoggerProvider
Public Sub New (filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean, disableColors As Boolean)

Параметры

includeScopes
Boolean
disableColors
Boolean
Атрибуты

Применяется к