DebugLoggerFactoryExtensions.AddDebug Метод

Определение

Перегрузки

AddDebug(ILoggerFactory)
Является устаревшей.

Добавляет средство ведения журнала отладки, для которого задан уровень LogLevel.Information или более высокий.Adds a debug logger that is enabled for LogLevel.Information or higher.

AddDebug(ILoggingBuilder)

Добавляет в фабрику средство ведения журнала отладки с именем "Debug".Adds a debug logger named 'Debug' to the factory.

AddDebug(ILoggerFactory, LogLevel)
Является устаревшей.

Добавляет средство ведения журнала отладки, для которого задан уровень LogLevel minLevel или более высокий.Adds a debug logger that is enabled for LogLevels of minLevel or higher.

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

Добавляет средство ведения журнала отладки, режим работы которого определяется функцией фильтра.Adds a debug logger that is enabled as defined by the filter function.

AddDebug(ILoggerFactory)

Внимание!

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

Добавляет средство ведения журнала отладки, для которого задан уровень LogLevel.Information или более высокий.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

Параметры

factory
ILoggerFactory

Аргумент метода расширения.The extension method argument.

Возвращаемое значение

ILoggerFactory
Атрибуты

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

AddDebug(ILoggingBuilder)

Добавляет в фабрику средство ведения журнала отладки с именем "Debug".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

Параметры

builder
ILoggingBuilder

Аргумент метода расширения.The extension method argument.

Возвращаемое значение

ILoggingBuilder

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

AddDebug(ILoggerFactory, LogLevel)

Внимание!

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

Добавляет средство ведения журнала отладки, для которого задан уровень LogLevel minLevel или более высокий.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

Параметры

factory
ILoggerFactory

Аргумент метода расширения.The extension method argument.

minLevel
LogLevel

Минимальный уровень ведения журнала LogLevelThe minimum LogLevel to be logged

Возвращаемое значение

ILoggerFactory
Атрибуты

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

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

Внимание!

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

Добавляет средство ведения журнала отладки, режим работы которого определяется функцией фильтра.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

Параметры

factory
ILoggerFactory

Аргумент метода расширения.The extension method argument.

filter
Func<String,LogLevel,Boolean>

Функция, используемая для фильтрации событий в соответствии с уровнем ведения журнала.The function used to filter events based on the log level.

Возвращаемое значение

ILoggerFactory
Атрибуты

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