IFileLoggingSession IFileLoggingSession IFileLoggingSession IFileLoggingSession Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

public : interface IFileLoggingSessionpublic interface IFileLoggingSessionPublic Interface IFileLoggingSession// You can use this interface in JavaScript.
Inheritance
IClosableIDisposableIDisposableIDisposable
IFileLoggingSessionIFileLoggingSessionIFileLoggingSessionIFileLoggingSession
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

CloseAndSaveToFileAsync() 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 )// You can use this method in JavaScript.
Returns

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.

Events

LogFileGenerated LogFileGenerated LogFileGenerated LogFileGenerated

Raised when a log file is saved.

public : abstract event TypedEventHandler LogFileGenerated<IFileLoggingSession,  LogFileGeneratedEventArgs>public abstract event TypedEventHandler LogFileGenerated<IFileLoggingSession,  LogFileGeneratedEventArgs>Public MustInherit Event LogFileGenerated<IFileLoggingSession,  LogFileGeneratedEventArgs>// You can use this event in JavaScript.

See Also

  • IClosable IDisposable IDisposable IDisposable