I​File​Logging​Session I​File​Logging​Session I​File​Logging​Session Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

public : interface IFileLoggingSessionpublic interface IFileLoggingSessionPublic Interface IFileLoggingSession
Inheritance
IClosableIDisposableIDisposable
IFileLoggingSessionIFileLoggingSessionIFileLoggingSession
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

Gets the name of the logging session.

public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string
Value
PlatForm::String string string

The session name.

Attributes

Methods

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
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

Attributes
See Also

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
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to add.

maxLevel
LoggingLevel LoggingLevel LoggingLevel

The logging level for loggingChannel.

Attributes
See Also

CloseAndSaveToFileAsync() CloseAndSaveToFileAsync() CloseAndSaveToFileAsync()

Ends the current logging session and saves it to a file.

public : IAsyncOperation<StorageFile> CloseAndSaveToFileAsync()public IAsyncOperation<StorageFile> CloseAndSaveToFileAsync()Public Function CloseAndSaveToFileAsync() As IAsyncOperation( Of StorageFile )
Returns
Attributes

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
Parameters
loggingChannel
ILoggingChannel ILoggingChannel ILoggingChannel

The logging channel to remove.

Attributes

Events

LogFileGenerated LogFileGenerated LogFileGenerated

Raised when a log file is saved.

public : abstract event TypedEventHandler LogFileGeneratedpublic abstract event TypedEventHandler LogFileGeneratedPublic MustInherit Event LogFileGenerated
Attributes

See Also