DebugLogger Klasse

Definition

Eine Protokollierung, die nur Nachrichten in das Debugausgabefenster schreibt, wenn ein Debugger angefügt ist.

public ref class DebugLogger : Microsoft::Extensions::Logging::ILogger
public class DebugLogger : Microsoft.Extensions.Logging.ILogger
type DebugLogger = class
    interface ILogger
Public Class DebugLogger
Implements ILogger
Vererbung
DebugLogger
Implementiert

Konstruktoren

DebugLogger(String)

Initialisiert eine neue Instanz der DebugLogger-Klasse.

DebugLogger(String, Func<String,LogLevel,Boolean>)

Initialisiert eine neue Instanz der DebugLogger-Klasse.

Methoden

BeginScope<TState>(TState)

Startet einen logischen Vorgangsbereich.

Equals(Object)

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
IsEnabled(LogLevel)

Überprüft, ob der angegebene logLevel-Parameter aktiviert ist.

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Schreibt einen Protokolleintrag.

MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)

Erweiterungsmethoden

BeginScope(ILogger, String, Object[])

Formatiert die Meldung und erstellt einen Bereich.

Log(ILogger, LogLevel, EventId, Exception, String, Object[])

Formatiert und schreibt eine Protokollmeldung auf der angegebenen Protokollebene.

Log(ILogger, LogLevel, EventId, String, Object[])

Formatiert und schreibt eine Protokollmeldung auf der angegebenen Protokollebene.

Log(ILogger, LogLevel, Exception, String, Object[])

Formatiert und schreibt eine Protokollmeldung auf der angegebenen Protokollebene.

Log(ILogger, LogLevel, String, Object[])

Formatiert und schreibt eine Protokollmeldung auf der angegebenen Protokollebene.

LogCritical(ILogger, EventId, Exception, String, Object[])

Formatiert und schreibt einen kritischen Eintrag in das Protokoll.

LogCritical(ILogger, EventId, String, Object[])

Formatiert und schreibt einen kritischen Eintrag in das Protokoll.

LogCritical(ILogger, Exception, String, Object[])

Formatiert und schreibt einen kritischen Eintrag in das Protokoll.

LogCritical(ILogger, String, Object[])

Formatiert und schreibt einen kritischen Eintrag in das Protokoll.

LogDebug(ILogger, EventId, Exception, String, Object[])

Formatiert und schreibt eine Debugprotokollmeldung.

LogDebug(ILogger, EventId, String, Object[])

Formatiert und schreibt eine Debugprotokollmeldung.

LogDebug(ILogger, Exception, String, Object[])

Formatiert und schreibt eine Debugprotokollmeldung.

LogDebug(ILogger, String, Object[])

Formatiert und schreibt eine Debugprotokollmeldung.

LogError(ILogger, EventId, Exception, String, Object[])

Formatiert und schreibt einen Eintrag in das Fehlerprotokoll.

LogError(ILogger, EventId, String, Object[])

Formatiert und schreibt einen Eintrag in das Fehlerprotokoll.

LogError(ILogger, Exception, String, Object[])

Formatiert und schreibt einen Eintrag in das Fehlerprotokoll.

LogError(ILogger, String, Object[])

Formatiert und schreibt einen Eintrag in das Fehlerprotokoll.

LogInformation(ILogger, EventId, Exception, String, Object[])

Formatiert uns schreibt einen Informationseintrag in das Protokoll.

LogInformation(ILogger, EventId, String, Object[])

Formatiert uns schreibt einen Informationseintrag in das Protokoll.

LogInformation(ILogger, Exception, String, Object[])

Formatiert uns schreibt einen Informationseintrag in das Protokoll.

LogInformation(ILogger, String, Object[])

Formatiert uns schreibt einen Informationseintrag in das Protokoll.

LogTrace(ILogger, EventId, Exception, String, Object[])

Formatiert und schreibt einen Ablaufverfolgungseintrag in das Protokoll.

LogTrace(ILogger, EventId, String, Object[])

Formatiert und schreibt einen Ablaufverfolgungseintrag in das Protokoll.

LogTrace(ILogger, Exception, String, Object[])

Formatiert und schreibt einen Ablaufverfolgungseintrag in das Protokoll.

LogTrace(ILogger, String, Object[])

Formatiert und schreibt einen Ablaufverfolgungseintrag in das Protokoll.

LogWarning(ILogger, EventId, Exception, String, Object[])

Formatiert und schreibt eine Warnung in das Protokoll.

LogWarning(ILogger, EventId, String, Object[])

Formatiert und schreibt eine Warnung in das Protokoll.

LogWarning(ILogger, Exception, String, Object[])

Formatiert und schreibt eine Warnung in das Protokoll.

LogWarning(ILogger, String, Object[])

Formatiert und schreibt eine Warnung in das Protokoll.

Gilt für: