Share via


ILoggingSession Schnittstelle

Definition

Stellt das Ziel der protokollierten Nachrichten von LoggingChannel-Instanzen dar.

public interface class ILoggingSession : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1646392070, 37760, 19159, 186, 245, 65, 234, 147, 16, 215, 104)]
struct ILoggingSession : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1646392070, 37760, 19159, 186, 245, 65, 234, 147, 16, 215, 104)]
public interface ILoggingSession : System.IDisposable
Public Interface ILoggingSession
Implements IDisposable
Abgeleitet
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Eigenschaften

Name

Ruft den Namen der Protokollierungssitzung ab.

Methoden

AddLoggingChannel(ILoggingChannel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal hinzu.

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Fügt der aktuellen Protokollierungssitzung einen Protokollierungskanal mit dem angegebenen Protokollierungsgrad hinzu.

Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

RemoveLoggingChannel(ILoggingChannel)

Entfernt den angegebenen Protokollierungskanal aus der aktuellen Protokollierungssitzung.

SaveToFileAsync(IStorageFolder, String)

Speichern Sie die aktuelle Protokollierungssitzung in einer Datei.

Gilt für:

Weitere Informationen