ILoggingSession ILoggingSession ILoggingSession ILoggingSession Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

public : interface ILoggingSession : IClosable
public interface ILoggingSession : IDisposable
Public Interface ILoggingSession Implements IDisposable
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IClosableIDisposableIDisposableIDisposable
ILoggingSessionILoggingSessionILoggingSessionILoggingSession
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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
var string = iLoggingSession.name;
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
iLoggingSession.addLoggingChannel(loggingChannel);
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
iLoggingSession.addLoggingChannel(loggingChannel, maxLevel);
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
iLoggingSession.removeLoggingChannel(loggingChannel);
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 )
var iAsyncOperation = iLoggingSession.saveToFileAsync(folder, fileName);
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

Close Close Close Close

Inherited from IClosable

See Also

  • IClosable IDisposable IDisposable IDisposable