DebugLoggerFactoryExtensions.AddDebug Method

Definition

Overloads

AddDebug(ILoggerFactory)

Adds a debug logger that is enabled for LogLevel.Information or higher.

AddDebug(ILoggingBuilder)

Adds a debug logger named 'Debug' to the factory.

AddDebug(ILoggerFactory, LogLevel)

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)

Warning

This API is now obsolete.

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);
[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
<Extension()>
Public Function AddDebug (factory As ILoggerFactory) As ILoggerFactory

Parameters

factory
ILoggerFactory

The extension method argument.

Returns

Attributes

AddDebug(ILoggingBuilder)

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

Parameters

builder
ILoggingBuilder

The extension method argument.

Returns

AddDebug(ILoggerFactory, LogLevel)

Warning

This API is now obsolete.

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);
[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
<Extension()>
Public Function AddDebug (factory As ILoggerFactory, minLevel As LogLevel) As ILoggerFactory

Parameters

factory
ILoggerFactory

The extension method argument.

minLevel
LogLevel

The minimum LogLevel to be logged

Returns

Attributes

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

Warning

This API is now obsolete.

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);
[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
<Extension()>
Public Function AddDebug (factory As ILoggerFactory, filter As Func(Of String, LogLevel, Boolean)) As ILoggerFactory

Parameters

factory
ILoggerFactory

The extension method argument.

filter
Func<String,LogLevel,Boolean>

The function used to filter events based on the log level.

Returns

Attributes

Applies to