ConsoleLoggerExtensions.AddConsole Método

Definição

Sobrecargas

AddConsole(ILoggerFactory)
Obsoleto.

Adiciona um agente de console que está habilitado para LogLevel.Information ou superior.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)
Obsoleto.

Adiciona um agente de console que está habilitado conforme definido pela função de filtro.

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Adiciona um agente de console chamado 'Console' à fábrica.

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)
Obsoleto.

Adiciona um agente de console que está habilitado conforme definido pela função de filtro.

AddConsole(ILoggerFactory, Boolean)
Obsoleto.

Adiciona um agente de console que está habilitado para LogLevel.Information ou superior.

AddConsole(ILoggerFactory, LogLevel, Boolean)
Obsoleto.

Adiciona um agente de console que está habilitado para LogLevels de minLevel ou superior.

AddConsole(ILoggerFactory, IConsoleLoggerSettings)
Obsoleto.
AddConsole(ILoggerFactory, IConfiguration)
Obsoleto.
AddConsole(ILoggingBuilder)

Adiciona um agente de console chamado 'Console' à fábrica.

AddConsole(ILoggerFactory, LogLevel)
Obsoleto.

Adiciona um agente de console que está habilitado para LogLevels de minLevel ou superior.

AddConsole(ILoggerFactory)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado para LogLevel.Information ou superior.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>, Boolean)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado conforme definido pela função de filtro.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, 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 AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean), includeScopes As Boolean) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

filter
Func<String,LogLevel,Boolean>

O filtro de categoria a ser aplicado aos logs.

includeScopes
Boolean

Um valor que indica se as informações de escopo de log devem ser exibidas na saída.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggingBuilder, Action<ConsoleLoggerOptions>)

Adiciona um agente de console chamado 'Console' à fábrica.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::Console::ConsoleLoggerOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> configure);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder, configure As Action(Of ConsoleLoggerOptions)) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder a ser usado.

configure
Action<ConsoleLoggerOptions>

Um delegado para configurar o ConsoleLogger.

Retornos

ILoggingBuilder

Aplica-se a

AddConsole(ILoggerFactory, Func<String,LogLevel,Boolean>)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado conforme definido pela função de filtro.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

filter
Func<String,LogLevel,Boolean>

O filtro de categoria a ser aplicado aos logs.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggerFactory, Boolean)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado para LogLevel.Information ou superior.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, includeScopes As Boolean) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

includeScopes
Boolean

Um valor que indica se as informações de escopo de log devem ser exibidas na saída.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggerFactory, LogLevel, Boolean)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado para LogLevels de minLevel ou superior.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel, bool includeScopes);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel, bool includeScopes);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel, bool includeScopes);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel * bool -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel * bool -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, minLevel As LogLevel, includeScopes As Boolean) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

minLevel
LogLevel

O mínimo LogLevel a ser registrado.

includeScopes
Boolean

Um valor que indica se as informações de escopo de log devem ser exibidas na saída.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggerFactory, IConsoleLoggerSettings)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::Console::IConsoleLoggerSettings ^ settings);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings settings);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.Console.IConsoleLoggerSettings -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, settings As IConsoleLoggerSettings) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

settings
IConsoleLoggerSettings

As configurações a serem aplicadas às ConsoleLoggers criadas.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggerFactory, IConfiguration)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Configuration.IConfiguration configuration);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, configuration As IConfiguration) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

configuration
IConfiguration

O IConfiguration a ser usado para IConsoleLoggerSettings.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddConsole(ILoggingBuilder)

Adiciona um agente de console chamado 'Console' à fábrica.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddConsole(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddConsole (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member AddConsole : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddConsole (builder As ILoggingBuilder) As ILoggingBuilder

Parâmetros

builder
ILoggingBuilder

O ILoggingBuilder a ser usado.

Retornos

ILoggingBuilder

Aplica-se a

AddConsole(ILoggerFactory, LogLevel)

Cuidado

This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).

Adiciona um agente de console que está habilitado para LogLevels de minLevel ou superior.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddConsole(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel);
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddConsole (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel);
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggerFactory
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is AddConsole(this ILoggingBuilder builder).")>]
static member AddConsole : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddConsole (factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O ILoggerFactory a ser usado.

minLevel
LogLevel

O mínimo LogLevel a ser registrado.

Retornos

ILoggerFactory
Atributos

Aplica-se a