DebugLoggerFactoryExtensions.AddDebug Método

Definição

Sobrecargas

AddDebug(ILoggerFactory)
Obsoleto.

Adiciona um agente de depuração que está habilitado para LogLevel.Information ou superior.Adds a debug logger that is enabled for LogLevel.Information or higher.

AddDebug(ILoggingBuilder)

Adiciona um agente de depuração chamado 'Debug' à fábrica.Adds a debug logger named 'Debug' to the factory.

AddDebug(ILoggerFactory, LogLevel)
Obsoleto.

Adiciona um agente de depuração que está habilitado para LogLevels de minLevel ou superior.Adds a debug logger that is enabled for LogLevels of minLevel or higher.

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

Adiciona um agente de depuração que está habilitado conforme definido pela função de filtro.Adds a debug logger that is enabled as defined by the filter function.

AddDebug(ILoggerFactory)

Cuidado

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

Adiciona um agente de depuração que está habilitado para LogLevel.Information ou superior.Adds a debug logger that is enabled for LogLevel.Information or higher.

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

Parâmetros

factory
ILoggerFactory

O argumento do método de extensão.The extension method argument.

Retornos

ILoggerFactory
Atributos

Aplica-se a

AddDebug(ILoggingBuilder)

Adiciona um agente de depuração chamado 'Debug' à fábrica.Adds a debug logger named 'Debug' to the factory.

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

Parâmetros

builder
ILoggingBuilder

O argumento do método de extensão.The extension method argument.

Retornos

ILoggingBuilder

Aplica-se a

AddDebug(ILoggerFactory, LogLevel)

Cuidado

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

Adiciona um agente de depuração que está habilitado para LogLevels de minLevel ou superior.Adds a debug logger that is enabled for LogLevels of minLevel or higher.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddDebug(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Microsoft::Extensions::Logging::LogLevel minLevel);
public static Microsoft.Extensions.Logging.ILoggerFactory AddDebug (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 AddDebug(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddDebug (this Microsoft.Extensions.Logging.ILoggerFactory factory, Microsoft.Extensions.Logging.LogLevel minLevel);
static member AddDebug : 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 AddDebug(this ILoggingBuilder builder).")>]
static member AddDebug : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddDebug (factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O argumento do método de extensão.The extension method argument.

minLevel
LogLevel

O LogLevel mínimo a ser registradoThe minimum LogLevel to be logged

Retornos

ILoggerFactory
Atributos

Aplica-se a

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

Cuidado

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

Adiciona um agente de depuração que está habilitado conforme definido pela função de filtro.Adds a debug logger that is enabled as defined by the filter function.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggerFactory ^ AddDebug(Microsoft::Extensions::Logging::ILoggerFactory ^ factory, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public static Microsoft.Extensions.Logging.ILoggerFactory AddDebug (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 AddDebug(this ILoggingBuilder builder).")]
public static Microsoft.Extensions.Logging.ILoggerFactory AddDebug (this Microsoft.Extensions.Logging.ILoggerFactory factory, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddDebug : 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 AddDebug(this ILoggingBuilder builder).")>]
static member AddDebug : Microsoft.Extensions.Logging.ILoggerFactory * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggerFactory
<Extension()>
Public Function AddDebug (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

Parâmetros

factory
ILoggerFactory

O argumento do método de extensão.The extension method argument.

filter
Func<String,LogLevel,Boolean>

A função usada para filtrar eventos com base no nível de log.The function used to filter events based on the log level.

Retornos

ILoggerFactory
Atributos

Aplica-se a