ILoggingSession Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

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
Derived
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Name

Gets the name of the logging session.

Methods

AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

AddLoggingChannel(ILoggingChannel, LoggingLevel)

Adds a logging channel with the specified logging level to the current logging session.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

RemoveLoggingChannel(ILoggingChannel)

Removes the specified logging channel from the current logging session.

SaveToFileAsync(IStorageFolder, String)

Save the current logging session to a file.

Applies to

See also