IFileLoggingSession IFileLoggingSession IFileLoggingSession IFileLoggingSession IFileLoggingSession Interface

Definition

Represents the destination of logged messages from LoggingChannel instances.

public : interface IFileLoggingSession : IClosable
struct winrt::Windows::Foundation::Diagnostics::IFileLoggingSession : IClosable
public interface IFileLoggingSession : IDisposable
Public Interface IFileLoggingSession Implements IDisposable
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IDisposableIDisposableIDisposable
IFileLoggingSessionIFileLoggingSessionIFileLoggingSessionIFileLoggingSessionIFileLoggingSession
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 Name

Gets the name of the logging session.

Methods

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

Adds a logging channel to the current logging session.

AddLoggingChannel(ILoggingChannel, LoggingLevel) 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.

Close Close Close Close Close

Releases system resources that are exposed by a Windows Runtime object.

.NET This interface appears as System.IDisposable.

C++/CX This interface appears as Platform::IDisposable.

(Inherited from IClosable)
CloseAndSaveToFileAsync() CloseAndSaveToFileAsync() CloseAndSaveToFileAsync() CloseAndSaveToFileAsync() CloseAndSaveToFileAsync()

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

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

Removes the specified logging channel from the current logging session.

Events

LogFileGenerated LogFileGenerated LogFileGenerated LogFileGenerated LogFileGenerated

Raised when a log file is saved.

See also