ILoggingSession interface

Applies to Windows and Windows Phone

Represents the destination of logged messages from LoggingChannel instances.

Syntax


public interface ILoggingSession : IDisposable

Attributes

[Version(0x06030000)]

Members

The ILoggingSession interface has these types of members:

Methods

The ILoggingSession 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.
RemoveLoggingChannel Removes the specified logging channel from the current logging session.
SaveToFileAsync Save the current logging session to a file.

 

Properties

The ILoggingSession interface has these properties.

PropertyAccess typeDescription

Name

Read-onlyGets the name of the logging session.

 

Requirements

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

See also

IClosable

 

 

Show:
© 2014 Microsoft. All rights reserved.