ILoggingSession ILoggingSession ILoggingSession ILoggingSession Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

public : interface ILoggingSessionpublic interface ILoggingSessionPublic Interface ILoggingSession// You can use this interface in JavaScript.
Inheritance
IClosableIDisposableIDisposableIDisposable
ILoggingSessionILoggingSessionILoggingSessionILoggingSession
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Properties

Name Name Name Name

Gets the name of the logging session.

public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The session name.

Methods

AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel) AddLoggingChannel(ILoggingChannel)

Adds a logging channel to the current logging session.

public : void AddLoggingChannel(ILoggingChannel loggingChannel)public void AddLoggingChannel(ILoggingChannel loggingChannel)Public Function AddLoggingChannel(loggingChannel As ILoggingChannel) As void// You can use this method in JavaScript.
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

See Also

AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel) AddLoggingChannel(ILoggingChannel, LoggingLevel)

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

public : void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel)public void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel)Public Function AddLoggingChannel(loggingChannel As ILoggingChannel, maxLevel As LoggingLevel) As void// You can use this method in JavaScript.
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

maxLevel
LoggingLevel LoggingLevel LoggingLevel LoggingLevel

The logging level for loggingChannel.

See Also

RemoveLoggingChannel(ILoggingChannel) RemoveLoggingChannel(ILoggingChannel) RemoveLoggingChannel(ILoggingChannel) RemoveLoggingChannel(ILoggingChannel)

Removes the specified logging channel from the current logging session.

public : void RemoveLoggingChannel(ILoggingChannel loggingChannel)public void RemoveLoggingChannel(ILoggingChannel loggingChannel)Public Function RemoveLoggingChannel(loggingChannel As ILoggingChannel) As void// You can use this method in JavaScript.
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to remove.

SaveToFileAsync(IStorageFolder, String) SaveToFileAsync(IStorageFolder, String) SaveToFileAsync(IStorageFolder, String) SaveToFileAsync(IStorageFolder, String)

Save the current logging session to a file.

public : IAsyncOperation<StorageFile> SaveToFileAsync(IStorageFolder folder, PlatForm::String fileName)public IAsyncOperation<StorageFile> SaveToFileAsync(IStorageFolder folder, String fileName)Public Function SaveToFileAsync(folder As IStorageFolder, fileName As String) As IAsyncOperation( Of StorageFile )// You can use this method in JavaScript.
Parameters
folder
IStorageFolder IStorageFolder IStorageFolder IStorageFolder

The folder to save the log file in.

fileName
PlatForm::String String String String

The name of the file.

Returns

See Also