Compartilhar via


ConsoleLoggerProvider Construtores

Definição

Sobrecargas

ConsoleLoggerProvider(IConsoleLoggerSettings)
Obsoleto.
ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

Cria uma instância de ConsoleLoggerProvider.

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

Cria uma instância de ConsoleLoggerProvider.

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

ConsoleLoggerProvider(IConsoleLoggerSettings)

Cuidado

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)

Parâmetros

Atributos

Aplica-se a

ConsoleLoggerProvider(IOptionsMonitor<ConsoleLoggerOptions>)

Cria uma instância de 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))

Parâmetros

options
IOptionsMonitor<ConsoleLoggerOptions>

As opções com as quais criar instâncias de ConsoleLogger.

Aplica-se a

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

Cria uma instância de 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))

Parâmetros

options
IOptionsMonitor<ConsoleLoggerOptions>

As opções com as quais criar instâncias de ConsoleLogger.

formatters
IEnumerable<ConsoleFormatter>

Formatadores de log adicionados às instâncias de ConsoleLogger.

Aplica-se a

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

Cuidado

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)

Parâmetros

includeScopes
Boolean
Atributos

Aplica-se a

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

Cuidado

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)

Parâmetros

includeScopes
Boolean
disableColors
Boolean
Atributos

Aplica-se a