DebugLoggerFactoryExtensions.AddDebug Methode

Definition

Überlädt

AddDebug(ILoggerFactory)
Veraltet.

Fügt eine Debugprotokollierung hinzu, die für LogLevel. Information oder höher aktiviert ist.

AddDebug(ILoggingBuilder)

Fügt der Factory eine Debugprotokollierung mit dem Namen „Debug“ hinzu.

AddDebug(ILoggerFactory, LogLevel)
Veraltet.

Fügt eine Debugprotokollierung hinzu, die für LogLevel-Elemente von minlevel oder höher aktiviert ist.

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

Fügt eine Debugprotokollierung hinzu, die wie durch die Filterfunktion definiert aktiviert ist.

AddDebug(ILoggerFactory)

Achtung

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

Fügt eine Debugprotokollierung hinzu, die für LogLevel. Information oder höher aktiviert ist.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

AddDebug(ILoggingBuilder)

Fügt der Factory eine Debugprotokollierung mit dem Namen „Debug“ hinzu.

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

Parameter

builder
ILoggingBuilder

Das Argument der Erweiterungsmethode.

Gibt zurück

ILoggingBuilder

Gilt für:

AddDebug(ILoggerFactory, LogLevel)

Achtung

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

Fügt eine Debugprotokollierung hinzu, die für LogLevel-Elemente von minlevel oder höher aktiviert ist.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

minLevel
LogLevel

Das Minimum LogLevel , das protokolliert werden soll.

Gibt zurück

ILoggerFactory
Attribute

Gilt für:

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

Achtung

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

Fügt eine Debugprotokollierung hinzu, die wie durch die Filterfunktion definiert aktiviert ist.

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

Parameter

factory
ILoggerFactory

Das Argument der Erweiterungsmethode.

filter
Func<String,LogLevel,Boolean>

Die Funktion, die verwendet wird, um Ereignisse basierend auf dem Protokolliergrad zu filtern.

Gibt zurück

ILoggerFactory
Attribute

Gilt für: