Windows Dev Center

IFileLoggingSession interface

Represents the destination of logged messages from LoggingChannel instances.

Syntax


public interface IFileLoggingSession : IDisposable

Members

The IFileLoggingSession interface has these types of members:

Events

The IFileLoggingSession interface has these events.

EventDescription
LogFileGenerated Raised when a log file is saved.

 

Methods

The IFileLoggingSession interface has these methods. It also inherits methods from the Object class.

MethodDescription
AddLoggingChannel(ILoggingChannel) Adds a logging channel to the current logging session.
AddLoggingChannel(ILoggingChannel,LoggingLevel) Adds a logging channel with the specified logging level to the current logging session.
CloseAndSaveToFileAsync Ends the current logging session and saves it to a file.
RemoveLoggingChannel Removes the specified logging channel from the current logging session.

 

Properties

The IFileLoggingSession interface has these properties.

PropertyAccess typeDescription

Name

Read-onlyGets the name of the logging session.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06030000)]

See also

FileLoggingSession
IClosable

 

 

Show:
© 2015 Microsoft